Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js how to fix 0.1 + 0.2

console.log((0.1 + 0.2).toFixed(1)); // 0.3
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #fix
ADD COMMENT
Topic
Name
5+6 =