Description
bcal, short for Byte CALculator, is a REPL command-line utility for storage calculations. You type expressions with storage units, such as (2GiB * 2) / (2KiB >> 2), and it evaluates them, converts between SI and IEC binary prefixes, works out byte addresses and LBA and CHS disk addresses, and converts numbers between binary, decimal and hex. It can also show which bit positions are set in a number. It runs as a REPL or in single-execution mode, and it accepts piped input or a file. The REPL keeps the last valid result for reuse. For CHS calculations you can set a custom sector size, maximum heads per cylinder and maximum sectors per track. For general-purpose arithmetic, the README says to run bcal -b or press b at the prompt, and the operators include addition, division, modulo, bitwise AND, OR, XOR, complement and shifts, plus functions such as exp, log, ln, pow, root and sum. bcal is written in C and uses GNU Readline or BSD Editline, or a built-in prompt if you build with O_NORL=1. It supports 64-bit operating systems only. The README covers package managers, building from source and Termux.…
Highlights
- Storage unit calculator in a REPL
- SI and IEC prefix conversion
- Byte address, LBA and CHS conversion
- Binary, decimal and hex base conversion
- General-purpose bitwise and math mode
Ratings & Reviews
No ratings yet
Be the first to rate Bcal.
People also visit
Bcal FAQ
What is bcal?
It is a command-line calculator for bits, bytes and storage, which handles expressions with units such as GiB and KiB.
How do I use it?
Run bcal for the REPL, or pass an expression for a single calculation. Use bcal -b or press b for general-purpose operations.
How do I install it?
The README covers package managers, building from source and Termux. GNU Readline is used unless you build with O_NORL=1.
Which systems does it support?
The README says it supports 64-bit operating systems only.
What are the best Bcal alternatives?
Popular alternatives to Bcal include Hemen Hesap, OpenSeaChest and TwisterTools. See all Bcal alternatives







