– Multiply the number by 10^N (using pow() function), then round the result to integer and divide it by 10^N .
Read moreWhats is double in flutter?
A double-precision floating point number . Representation of Dart doubles containing double specific constants and operations and specializations of operations inherited from num. Dart doubles are 64-bit floating-point numbers as specified in the IEEE 754 standard. The double type is contagious.
Read more