Returns the integer portion of a number, removing any fractional digits.
Syntax
Math.trunc(number)
Remarks
The required number argument is a numeric expression for which the truncated integer is needed.
If number is NaN, returns NaN.
Requirements
Supported in Microsoft Edge (Edge browser). Also supported in Store apps (Microsoft Edge on Windows 10). See Version Information.
Not supported in the following document modes: Quirks, Internet Explorer 6 standards, Internet Explorer 7 standards, Internet Explorer 8 standards, Internet Explorer 9 standards, Internet Explorer 10 standards, Internet Explorer 11 standards. Not supported in Windows 8.1.

