withPrecision method
Get the exact precision on value calculation
Implementation
T withPrecision([Precision precision = Precision.two]) => withValue(
value == 0 ? 0 : value.toDouble().toPrecision(precision.value),
);
Get the exact precision on value calculation
T withPrecision([Precision precision = Precision.two]) => withValue(
value == 0 ? 0 : value.toDouble().toPrecision(precision.value),
);