Method Frac
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Frac(float)
Returns the fractional part of a floating point number.
public static float Frac(float x)
Parameters
x
floatThe number to get the fractional part of.
Returns
- float
The fractional part of the given number.
Remarks
The result is always the number minus the number's floor.