Hacker News new | ask | show | jobs
by dahart 267 days ago
I entered 4e10 for Energy | Kilocalories, and got:

=> 0.914x the recommended daily food consumption for a male human adult (1.09x smaller)

Is this a bug, or am I not eating nearly enough?? ;)

1 comments

It looks like they defined that stat internally as "1.046e7", which would be a reasonable number assuming Joules. Elsewhere it defines Kilocalories as "0.000239006"... but I'm guessing they meant it the other way around (i.e. "4184" not "1/4184") based on how they use the data in the functions.

Sure enough, if you do 4e10/4184^2 you get right on target. I think other things in the energy category may have the same "wrong conversion direction" bug as well.

Oops. The energy values were indeed inverted. Now fixed. Thanks.

Also fixed a few other rogue values. We had the mass of a great white shark as 8.9e20 Kg, rather than 8.9e2 Kg. That would be quite some shark.

> We had the mass of a great white shark as 8.9e20 Kg, rather than 8.9e2 Kg

We're going to need a bigger boat.