Tuesday, 24 January 2017

javascript - How can I add float numbers without issue 0.1 + 0.2 !== 0.3?

I'm working in map app. So I manipulate a lot of with float number (lat and long). I knew that we have issue related to 0.1 + 0.2 !== 0.3. So how I can void it? Is there any method to add multiple float number?

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...