News for hackers. Stuff that matters.
Re:My first (quite pointless) Ruby website by ElbertF on Sunday October 24, 2010 @07:34PM (#1827696)
There's more:

1,000,000,000: Errr, a few franchises?

1,000,000,000,000: You could probably buy all of McDonalds stock for that kind of money.

Oh and apparently you can buy a Sundae for as little as $.999999999999999949.

Re:My first (quite pointless) Ruby website by pluies on Monday October 25, 2010 @07:31PM (#1832118)
> Oh and apparently you can buy a Sundae for as little as $.999999999999999949.

Damn, I was sure hackers here would test the edge cases, but I thought it would hold! :) What you describe look like a weird behaviour in Ruby's string parsing to int (if I remember my code correctly), but I'll look into it.

Re:My first (quite pointless) Ruby website by ElbertF on Monday October 25, 2010 @11:05PM (#1832747)
I wouldn't worry about it, it's just how Ruby and most other languages handle floats. Do a search on Google for "ruby float precision".