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