public static int?AsConvertedInt(this NumericRepresentationValue value, string targetUnitCode) { if (value == null) { return(null); } else { return((int)value.AsConvertedDouble(targetUnitCode).Value); } }
public static int AsConvertedInt(this NumericRepresentationValue value, string targetUnitCode) { return((int)value.AsConvertedDouble(targetUnitCode)); }