1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 15:17:58 +01:00
tldr/pages/common/bc.md
Igor Shubovych 8335e84476 bc: add page
2015-12-14 13:04:29 +02:00

19 lines
288 B
Markdown

# bc
> Calculator.
- Run calculator in interactive mode
`bc -i`
- Calculate the result of an expression
`bc <<< "(1 + 2) * 2 ^ 2"`
- Calculate with the given precision
`bc <<< "scale=10; 5 / 3"`
- Calculate expression with sine and cosine using mathlib
`bc -l <<< "s(1) + c(1)"`