trunc()

Only gets the integral part of a number.

This function is valid in v2.0.0 to v2.13.3. This function has been downloaded 41 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.