TOpenCLValue.Frac Method

function Frac(const X: TOpenCLValue): TOpenCLValue;

Fractional part of values.

#NameTypeDescription
1XTOpenCLValue

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