DoubleNullSmartRoundExtension extension
Double? Extensions
- on
Methods
-
toNumAsSmartRound(
{int maxPrecision = 2}) → num? -
Available on double?, provided by the DoubleNullSmartRoundExtension extension
-
toStringAsSmartRounded(
{int maxPrecision = 2}) → String? -
Available on double?, provided by the DoubleNullSmartRoundExtension extension
Converts to a rounded string, trimming unnecessary trailing zeros. Defaults to "0" if null.