rounding floating-point numbers
The rounding of a floating-point number to an integer or to a particular precision has to be done properly. The most common error is to cast the floating-point type float64 to an integer type and consider it as well-handled.
An example could be cast...
blog.cloudnativefolks.org2 min read