Math387.TruncAndFracToInt / TruncAndFracToIntf Method

Overload List

#SignatureDescription
1function TruncAndFracToInt(const X: Double; out FractionalPart: Double): Integer;
2function TruncAndFracToIntf(const X: Single; out FractionalPart: Single): Integer;Splits the floating point number to integer and fractional parts.

Overload 1: function TruncAndFracToInt(const X: Double; out FractionalPart: Double): Integer;

#NameTypeDescription
1XDouble
2FractionalPartDouble

Returns: Int32

Overload 2: function TruncAndFracToIntf(const X: Single; out FractionalPart: Single): Integer;

Splits the floating point number to integer and fractional parts.

#NameDescription
1XDefines real number to be split into integer and fractional part.
2FractionalPartReturns the fractional part of X.

Returns: Int32 - the integer part of X.

Remarks:

Splits the floating point number to integer and fractional parts.