Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript trunc

Math.trunc(13.37);    // 13
Math.trunc(42.84);    // 42
Math.trunc(0.123);    //  0
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #javascript #trunc
ADD COMMENT
Topic
Name
9+2 =