Math387::TruncAndFracToIntf Function

int TruncAndFracToIntf(const float X, float &FractionalPart);

Splits the floating point number to integer and fractional parts.

#NameTypeDescription
1Xconst floatDefines real number to be split into integer and fractional part.
2FractionalPartfloat &Returns the fractional part of X.

Returns: the integer part of X.

Remarks:

Splits the floating point number to integer and fractional parts.

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler