Monday, 11 April 2016

Adding 2 numbers in javascript

While adding 2 numbers I am getting a lengthy decimal part



Pasting the code below.



Number(200.59) + Number(100) =
300.59000000000003
//Expected result 300.59

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...