Results 1 to 4 of 4
ok if i write 1+1 in prompz i get error message....is possible to use "calculator" in bash (like in python shell)...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-07-2006 #1
bash calc
ok if i write 1+1 in prompz i get error message....is possible to use "calculator" in bash (like in python shell)
- 11-07-2006 #2Just Joined!
- Join Date
- Nov 2006
- Posts
- 45
expr 1 + 1
bash does not have builtin math functions like python or perl
- 11-08-2006 #3
You could potentially use a sort of built-in Bash utility:
$[...] syntax means "do the math in here", and the echo prints out the result.Code:echo $[1 + 1]
Also, you can install commandline calculators. I personally am fond of Qalculate!: there is a CLI version that you get when you install the GUI version.
- 11-09-2006 #4
anyway i dont have to make any calculations (i was just curious);
thanks


Reply With Quote
