Skip to content

frac

float  frac(float n)

<vector> frac(<vector>v)

Returns the fractional component of the floating point number. For example, frac(1.5) would return 0.5. For vectors, this done per-component.