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

The main thing the calculator program seems to have over python is easy unit conversions.

Also, I have to admit that python 2's default behavior regarding integer division is not what one expects from a calculator (I expect 3/2 = 1.5).




Yeah, but in Python you have other niceties, like dates.

Just the other day my pregnant wife asked me to calculate the aprox date she'll give birth (considering she has 17 weeks) ...

  from datetime import datetime, timedelta

  print str( datetime.now() + timedelta(weeks=40 - 17) )


Instacalc.com might be closer to what you want.


I ran across instacalc.com when looking for linux equivalents of soulver -- very nice web app.


Awesome, glad you're enjoying it!


I use wolframalpha, and sometimes maxima.


I switched from Python to R as my calculator of choice for this reason.

I only recently discovered that there's a lot more to R than intuitive division of integers ;)


Sure, but I'm intimately familiar with the semantics of the programming languages I use. It takes the same effort to insure floating point versus integer computations in the Python REPL as it does when writing a Python program - which is not much.

I'd rather use my existing knowledge than learn how to interface with something that is probably not as robust or as well designed.


Then use python 3.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: