A NaN spotted in the wild.

you are viewing a single comment's thread
view the rest of the comments
[–] 30 points 4 months ago* (2 children)

NaN are not exclusive to JavaScript, it's more scary that they're using floating point numbers for monetary value.
If you buy something at -Inf, do they empty the business bank account into yours?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 13 points 4 months ago (1 child)

    Eh, it’s not a problem if prices are being converted to floating point at some point before being displayed.

    What you don’t want to do is store the definitive price as a floating point and perform calculations with it. I don’t see any reason to assume that’s happening here.

  • source
  • parent
  • hideshow 1 child comment