Terminal 101: Solving Math Equations

5

Comments

+ Add a Comment
avatar

dirdled

One important feature you forgot to mention. If you're doing division and want 5/2 to equal 2.5 instead of 2 you need to set a special variable scale to the number of places to the right of the decimal.
scale=10 will allow answers like 2.5454545454

avatar

claidheamdanns

When I type "man bc," from within the basic calculator program, I get the following:

(standard_in) 1: parse error

But if I close out Terminal, and type "man bc" in a fresh window, it returns the expected manual for basic calculator.

avatar

Jts76

If your in bc:

Type "quit" and press "return"

OR

press "Control-Z"

to exit bc and get back to a command prompt.

you can then type "man bc" at command!!

avatar

corybohon

Before opening bc from the command line, type "man bc" inside of the command prompt. It won't work from within the bc program, which is why you got the "parse error."

avatar

corybohon

Before opening bc from the command line, type "man bc" inside of the command prompt. It won't work from within the bc program, which is why you got the "parse error."

Log in to Mac|Life directly or log in using Facebook

Forgot your username or password?
Click here for help.

Login with Facebook
Log in using Facebook to share comments and articles easily with your Facebook feed.