TOpenCLValue Frac(TOpenCLValue X)
Fractional part of values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue | source 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