DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js round to nearest thousand
var
myValue
=
23452.2
;
Math
.
round
(
myValue
/
1000
)
*
1000
;
//23000
PREVIOUS
NEXT
Tagged:
#js
#nearest
#thousand
ADD COMMENT
Topic
COMMENT
Name
5+5 =
Submit