bc arbitrary precision calculator
bc — interactive session ● READY
bc 7.0.3 (Web Edition) — Arbitrary Precision Calculator
Copyright (c) 2018-2024 Gavin D. Howard and contributors.
Based on gavinhoward/bc — BSD 2-clause License.
Type an expression and press Enter or click Run.
Try: sqrt(2), e(1), s(3.14159/6), 2^100, scale=50; 1/3
bc>
Keypad
History 0 items
No history yet.
Quick Reference
sqrt(x)Square root
s(x)Sine (radians)
c(x)Cosine (radians)
a(x)Arc tangent
l(x)Natural log
e(x)Exponential eˣ
4*a(1)π (pi)
x^yx to the power y
x%yRemainder (modulo)
scale=NSet decimal precision
Copied!