Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

take only int part of number js

// 11
Math.trunc(11.25)

// 11
Math.trunc(11.99)

// -11
Math.trunc(-11.25)

// 11
Math.trunc(11)
Source by usefulangle.com #
 
PREVIOUS NEXT
Tagged: #int #part #number #js
ADD COMMENT
Topic
Name
4+1 =