Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

RoundToNearest


...

Rounds the given value down to the nearest value as defined by precision.

...

Procedure: RoundToNearest(Val, Precision: Double): Double;


API Call:

Code Block
languagedelphi
titleScripting
linenumberstrue
collapsetrue
Result := RoundToNearest(10.36, 0.05); // returns 10.35