Declaration:  RoundToNearest(Val, Precision: Double): Double;
Rounds the given value down to the nearest value as defined by precision.

Source Code:

Result := RoundToNearest(10.36, 0.05); // returns 10.35