Math387::TruncAndFrac Function

double TruncAndFrac(const double X, double &FractionalPart);

Splits the floating point number to integer and fractional parts.

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

Returns: the integer part of X as real.

Remarks:

Splits the floating point number to integer and fractional parts.

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