function Frac(const X: TOpenCLValue): TOpenCLValue;
Fractional part of values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | X | TOpenCLValue |
Returns: TOpenCLValue
Remarks:
Calculates the fractional part for all object values in-place.
Examples
var a,b: clValue;
begin
b.Copy(2.3);
a.Frac(b); // a = 0.3
end;
See Also: clValue.Trunc, clValue.Round