DoubleExtensions extension
- on
Methods
-
toFormattedString(
{int? decimals, bool? showAsFraction, double? roundToNearestIncrement}) → String -
Available on double, provided by the DoubleExtensions extension
-
toFraction(
int? decimals) → String -
Available on double, provided by the DoubleExtensions extension
Returns the value as a fraction symbol, otherwise returns toStringAsPrecisionOrInt -
toStringAsPrecisionOrInt(
int precision) → String -
Available on double, provided by the DoubleExtensions extension
Returns a string of the number rounded toprecisionnumber of decimals, or less if possible