logo
Free, Micro AI Code Reviews That Run on Git Commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt git-lrc - Free, Micro AI Code Reviews That Run on Git Commit | Product Hunt

Calculate with bc - Precision Calculation Tool | Online Free DevTools by Hexmos

Calculate expressions with bc, an arbitrary precision calculator language. Perform complex math and execute scripts with ease. Free online tool, no registration required.

bc

An arbitrary precision calculator language. See also: dc. More information: https://keith.github.io/xcode-man-pages/bc.1.html.

  • Start an interactive session:

bc

  • Start an interactive session with the standard math library enabled:

bc --mathlib

  • Calculate an expression:

bc --expression '{{5 / 3}}'

  • Execute a script:

bc {{path/to/script.bc}}

  • Calculate an expression with the specified scale:

bc --expression '{{scale = 10; 5 / 3}}'

  • Calculate a sine/cosine/arctangent/natural logarithm/exponential function using mathlib:

bc --mathlib --expression '{{s|c|a|l|e}}({{1}})'

See Also