Round |
Top Previous Next |
Prototype
IntNumber:=Round(floatNumber)
Description
Rounds a real number to the nearer integer.
Parameters
FloatNumber: real number to be rounded.
Returned value
IntNumber: integer obtained by rounding.
Notes
None.
Example
// Initialize a variable with a floating value Value:=10.6;
// Round the value: the result is 11 RoundedValue:=Round(Value); |