DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+8 =
Submit