Table of Contents

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 float

The 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.