9

When you’re trying to write a function to convert a base 10 integer to a base 2 integer in Javascript without using parseInt() and it takes you a while to realize that you’re used to integer division being integer division and have forgotten that JavaScript stores numbers as double precision floating point. *facepalm*

Comments
  • 1
    @oreru Most definitely! I was just trying to get some modulo/division practice in. XD
Add Comment