Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to eliminate decimals in js

parseInt((284765.9785295492452).toFixed(3)); //only the first 3 decimals are shown and is treated as a number.  (also a good way to ward off peeping toms looking at your code)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #eliminate #decimals #js
ADD COMMENT
Topic
Name
2+7 =