Answers for "0.3+0.2 == what in javascript"

4

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
Posted by: Guest on February-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language