3 ms·
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 inte
by bobbyi 17y ago
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).
- scott_s 17y agoSure, 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.
- thegoleffect 17y agoInstacalc.com might be closer to what you want.
- chrischen 17y agoI use wolframalpha, and sometimes maxima.
- kylemathews 17y agoI ran across instacalc.com when looking for linux equivalents of soulver -- very nice web app.
- kalid 17y agoAwesome, glad you're enjoying it!
- joshstaiger 17y agoI 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 ;)
- bad_user 17y agoYeah, 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) )
- algorias 17y agoThen use python 3.