clValue::TruncAndFrac Method

void TruncAndFrac(TOpenCLValue *TruncDst, TOpenCLValue *FracDst) const;

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

#NameTypeDescription
1TruncDstTOpenCLValue *
2FracDstTOpenCLValue *
Remarks:

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

See Also: clValue::Frac, clValue::Round
Declared in Dew::Math::clValue · Dew.Math/clMtxExpr.h · Cross-compiler