Roundings

Home  Back  Next

 

Rounding simplify the reading of "crooked" numbers. For float values the xx can be rounded. For integers, only signs before the colon can be rounded.

 

Rule in rounding of a number:

0 -- 5 -> 0
6 -- 9 -> 1

 

So:

 

3,141 rounded to two digit will be 3,14
2,718 rounded to two digit will be 2,72

 

The number of digits behind the colon will be given. Negative values are affecting digits before the colon. All digits behind the colon becomes to zero.

 

Rounding is possible to next, up, down, zero or not zero.