>
BBC -- Better BC
A cross-platform CLI calculator with arbitrary-precision arithmetic, physical units, dimensional analysis, and base conversion. Single Rust binary. This is a WASM-compiled preview -- see the GitHub repo for installation and full docs.
Arithmetic
1/3 * 3 → 1
2^64 → 18446744073709551616
Units
5 [kg] * 9.8 [m*s^-2] → 49 [N]
100 [km] -> [mi] → 62.137... [mi]
1500 [m] → 1.5 [km]
Bases
16xFF → 255
255 -> 16x → 16xFF
Constants
c → 299792458 [m*s^-1]
pi → 3.14159265...
Functions
sin cos tan asin acos atan atan2
sqrt cbrt exp ln log abs floor ceil
Commands
units imperial -- load unit setunit smoot = 67 [in] -- custom unitview scientific -- display modeLaTeX
\frac{1}{3} + \frac{1}{6} → 0.5
\sqrt{144} → 12