clValue.Frac Method

TOpenCLValue Frac(TOpenCLValue X)

Fractional part of values.

#NameTypeDescription
1XTOpenCLValuesource TOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculates the fractional part for all object values in-place.

Examples
clValue a;
clValue b;
b.Copy(2.3);
a.Frac(b);  // a = 0.3
See Also: clValue.Trunc, clValue.Round