Module: Editor
Version: 2.2.1 +
Description
The formula 'Round' for a double rounds a number to a specified number of digits. A negative number of digits rounds left of the decimal, see example.
The formula 'Round' for an integer rounds a real number to the nearest even integer. The behavior of this method follows IEEE Standard 754, section 4, also called Bankers-rounding. This means that numbers that end on .5 are rounded to the nearest even integer. This is done to avoid a distortion of the average by always rounding up.
Parameters
Double
Number: Here you refer to or fill in the number that has to be rounded.
Num_digits: Here you fill in the amount of digits
Long
Number: Here you refer to or fill in the number that has to be rounded.
Examples
Description
In this example you will see three examples for double numbers and two for long numbers.
Values parameters double
Result double
Values parameters double
Result double
Result: 0.2
Values parameters double
Result double
Values parameters long
Number: 0.5
Result long
Result: 0
Values parameters long