fract

taichi_glsl.scalar.fract(x)

Compute the fractional part of the argument.

fract returns the fractional part of x.

Parameters

x – Specify the value to evaluate.

Returns

The return value is calculated as x - floor(x).