Hacker News new | past | comments | ask | show | jobs | submit login

Interesting, 35! according to various tools:

  10333147966386100000000000000000000000000 (Open Office Calc)
  10333147966386100000000000000000000000000 (Excel)
  10333147966386144000000000000000000000000 (Gnumeric)
  10333147966386145000000000000000000000000 (Windows Calculator)
  10333147966386144929666651337523200000000 (Python)



Python is correct. It's promoting to bignum, while the others are using floats, presumably, and passing them off as integers. I think they ought to display 1.0333147966386144e40.

Your average wannabe-banker/Wharton undergrad has never heard of Python, however, but has used Excel. Quants are familiar with Python, but they get harder problems.

Most quants don't, however, get to use Python. For some inexplicable reason, a lot of them are mired in C++, of all languages, and tend to be poor-to-mediocre programmers. There are exceptions, though; the one I worked at used an FP language and had excellent programmers.


I think they ought to display 1.0333147966386144e40.

Actually, they did show the result by default as floats in scientific notation, it was me who changed number display options for easier visual comparison.

I assumed quants preferred C++ because of performance. When I occasionally have to go back from Python to C/C++, I'm surprised much faster it is.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: