Math387.TruncToInt / TruncToIntf Method

Overload List

#SignatureDescription
1function TruncToInt(const X: Double): Integer;Rounds double precision floating point number towards zero and converts to 32bit integer.
2function TruncToIntf(const X: Single): Integer;Rounds single precision floating point number towards zero and converts to 32bit integer.

Overload 1: function TruncToInt(const X: Double): Integer;

Rounds double precision floating point number towards zero and converts to 32bit integer.

#NameTypeDescription
1XDouble

Returns: Int32

Overload 2: function TruncToIntf(const X: Single): Integer;

Rounds single precision floating point number towards zero and converts to 32bit integer.

#NameTypeDescription
1XSingle

Returns: Int32