public GetDecimal ( Dicom.Data.DicomTag tag, decimal deflt ) : decimal | ||
tag | Dicom.Data.DicomTag | |
deflt | decimal | |
return | decimal |
public decimal GetDecimal(DicomTag tag, decimal deflt)
{
DcmDecimalString ds = GetDS(tag);
if (ds != null && ds.Length > 0)
return ds.GetDecimal();
return deflt;
}