Round Floats To Integers
Last updated
Was this helpful?
Last updated
Was this helpful?
The function allows you to round floating point numbers. The result is another floating point number.
If, instead, you always want an integer as the result of rounding, you can use Kernel
's version of a rounding function:
The function accepts both integers and floats, and always returns an integer. Additionally, it can be used in guard tests.