Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js convert double to int

var num = 2.9
console.log(parseInt(num, 10)); // 2
 
PREVIOUS NEXT
Tagged: #js #convert #double #int
ADD COMMENT
Topic
Name
6+8 =