trunc()

Only gets the integral part of a number.

This function is valid in v2.0.0 to v2.14.0. This function has been downloaded 48 times.

Parameter

{number} num
The number for which only the integral part shall be returned.

Returns

{number}
The integral part of num while keeping the sign.