clValue.Rem Method

function Rem(const X: TOpenCLValue; const Y: TOpenCLValue): TOpenCLValue;

The Reminder after division X/Y.

#NameTypeDescription
1XTOpenCLValue
2YTOpenCLValue

Returns: TOpenCLValue

Remarks:

Calculates reminder after division according to formula:

x[i]-y[i]*Trunc(x[i]/y[i]).

The results will be saved to the calling object.

Examples
var a,b,c: clValue;
begin
    a.Copy(4);
    b.Copy(3);
    c.Rem(a,b); // c = Rem(4,3)
end;