SnapNumeric

References
public delegate SnapNumeric
Snap a number to the nearest allowed number. This is only useful for one-dimensional snapping behaviour, or at least where snapping is completely unrelated in the dimensions involved.
double SnapNumeric(double value)
value (double)Value to snap.