TOpenCLValue.TruncAndFrac Method

procedure TruncAndFrac(TruncDst: TOpenCLValue; FracDst: TOpenCLValue);

Rounds a real number towards zero and returns the fractional part.

#NameTypeDescription
1TruncDstTOpenCLValuesource TOpenCLValue
2FracDstTOpenCLValuesource TOpenCLValue

Result: stored in self (calling object)

Remarks:

Rounds calling object value towards zero to an integer and stores the result in the TruncDst object as a floating point numbers. The fractional part is stored in the FracDst.

See Also: TOpenCLValue.Frac, TOpenCLValue.Round