DoubleSmartRoundExtension extension
Double Extensions
- on
Methods
-
toNumAsSmartRound(
{int maxPrecision = 2}) → num -
Available on double, provided by the DoubleSmartRoundExtension extension
Converts to num after smart rounding -
toStringAsSmartRounded(
{int maxPrecision = 2}) → String -
Available on double, provided by the DoubleSmartRoundExtension extension
Converts to a rounded string, trimming unnecessary trailing zeros.