RoundToNearest
...
Rounds the given value down to the nearest value as defined by precision.
...
Procedure: RoundToNearest(Val, Precision: Double): Double;
API Call:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Result := RoundToNearest(10.36, 0.05); // returns 10.35 |
...
Rounds the given value down to the nearest value as defined by precision.
...
Procedure: RoundToNearest(Val, Precision: Double): Double;
API Call:
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Result := RoundToNearest(10.36, 0.05); // returns 10.35 |