Calculates the truncation of a number
The number to calculate the truncation for.
The integer part of the given number.
trunc(-4.6); // Returns -4 trunc(10.5); // Returns 10 Copy
trunc(-4.6); // Returns -4 trunc(10.5); // Returns 10
Generated using TypeDoc
Calculates the truncation of a number