DoubleExt extension
Extension methods for nullable doubles (double?).
Provides safe utilities for formatting and value scaling.
- on
Methods
-
applyRatio(
double ratio) → double? -
Available on double?, provided by the DoubleExt extension
Applies aratiomultiplier to the value. -
toStringAsFixedOrInteger(
{int decimal = 1}) → String - Converts the double to a string with a fixed number of decimal places, or without decimals if it's a whole number.