round2
round2(n_arg) =>x_result
Description
This function is a version of the round function that rounds the result in floating-point calculations to its closest integer value.
Arguments
Value Returned
Examples
val=-0.2865
round(val/0.001)*0.001
=> -0.286
round2(val/0.001)*0.001
=> -0.287
Related Topics
Return to top