Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

0.1 + 0.2 javascript

in JavaScript 0.1 + 0.2 equals 0.30000000000000004 and not 0.3,
as 0.1 is represented as an endless fraction and is eventually rounded
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #javascript
ADD COMMENT
Topic
Name
2+3 =