round function Null safety
Rounds value
to given number of decimals
Implementation
double round(final double value, {final int decimals: 6}) =>
(value * math.pow(10, decimals)).round() / math.pow(10, decimals);
Rounds value
to given number of decimals
double round(final double value, {final int decimals: 6}) =>
(value * math.pow(10, decimals)).round() / math.pow(10, decimals);