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: TOpenCLValue;
begin
CreateIt(a,b);
try
b.Copy(2.3);
a.Frac(b); // a = 0.3
finally
FreeIt(a,b);
end;
end;
See Also: TOpenCLValue.Trunc, TOpenCLValue.Round