### 2 questions

Filter

- 1 votes1 answers14 views
### Why does 0.8 + 0.4 not equal 1.2

Been coding in javascript and came across a weird bug. I got passed values of 0.8 and 0.4 and when I added them together I got 1.2000000000000002 You can replicate ...

- 0 votes0 answers5 views
### How can I do an integer division with remainder in JavaScript?

How can I achieve in JavaScript: the whole number of times a given integer goes into another? the remainder? Any help will be appreciated.