math.fract

From Wake
Jump to: navigation, search

Get the fractional component(s) of a value. Supports numbers and vector types. Vectors will have this function applied to each component.

Function

Synopsis

result = math.fract(x)

Arguments

number,Vector2,Vector3,Vector4 x

The value.

Returns

number,Vector2,Vector3,Vector4 result

The fractional component of the value.

Notes

  • This function implies the argument type based on the first argument. As such, you may not use table shorthand for the first argument if it is supposed to be a vector.

See Also