Search
 
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
Name
5+5 =