Snap

Snaps a floating point to the nearest step

f_snapf

float f_snapf(float f, float step_size);

Description: 32 bit float step function.

f_snapd

double f_snapd(double f, double step_size);

Description: 64 bit double step function.