The calculator tag has no wiki summary.
2
votes
4answers
555 views
Calculate variable, and output it to another variable
The only calculator I know is bc. I want to add 1 to a variable, and output to another variable.
I got the nextnum variable from counting string in a file:
nextnum=`grep -o stringtocount ...
4
votes
2answers
312 views
Does bc supports hex calculations?
I'm trying to do a hex calculation directly with bc, I already specified the scale.
echo 'scale=16;c06b1000-c06a5e78' | bc
But it still got me zero. What could be wrong?
4
votes
3answers
764 views
bc doesn't support log and factorial calculation?
Is there any other command line calculator that supports log, n! calculations ? At least bc can't do that, it told me parse error
It's best if I could use script, e.g echo '5!' | program
75
votes
13answers
10k views
How to do integer & float calculations, in bash or other languages?
Using echo "20+5" literally produces 20+5
What command can I use to get the actual sum, e.g. 25 in this case.
Also, what's the easiest way to do it just using bash for floating point, e.g.
echo ...
2
votes
1answer
131 views
Make screenshots of Ti-calculator screen
I want to connect a TI-84 Plus Calculator to my PC and take screenshots of the calculator display. Under windows this is possible using the TI-connect software. However is there also a way to do this ...