Nadav Har'El wrote:
For years, I've been wondering: How do other Unix or Linux users do simple
calculations?

Do you take out an actual physical calculator (which is of course ridiculous)?
Do you use software that looks like a physical calculator (xcalc, kcalc, etc.)?

Or do you use bc? Does anyone actually use bc, which returns "0" as a result
for the calculation "2/3"? :-) Of course, you can use "scale=10" (or the -l
option to bc) to fix that, but how many first-time users would know that?
What posessed the person who decided to make scale=0 the default? :-)

since i don't care for the "first timers" when _i_ need to do the calculations - i always use 'bc' for simple math. i use "expr" if i need integer math as part of a shell command. if i need something more complicated where i want to tweak the calculation and re-run it with different parameters (e.g. multi-year interest calculations) - i write a program in C - the last one was for calculating prospected pension earnings. i should learn how to use a spreadsheet for that, but i think there is an advantage for a C program in some situations.

--guy

_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to