BSD Ports

math/bcal 2.6 NetBSD

Storage and general-purpose calculator

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
4c0e8cfb9d
License
gnu-gpl-v3
Categories
math
Package size
28.1 KiB, 74.3 KiB installed

Description

bcal (Byte CALculator) is a REPL CLI utility for storage expressions, unit conversions or address calculations. If you can't calculate the hex address offset for (512 - 16) MiB, or the value when the 43rd bit of a 64-bit address is set mentally, bcal is for you.

It has a bc(1) mode for general-purpose numerical calculations.

Only 64-bit operating systems are supported.

In the other systems

SystemPortVersion
NetBSDmath/bcal2.6
FreeBSDmath/bcal2.6
OpenBSDmath/bcal2.5
DragonFlymath/bcal2.4

Install

Binary package:

pkgin install bcal

From pkgsrc:

cd /usr/pkgsrc/math/bcal && make install clean

Dependencies

Run dependencies 1

No port depends on this one.

Commit history 1

DateCommitCreditsLog message
4c0e8cfb9d sjmulder math/bcal: update to 2.6
Changes: - support native prompt and history without readline (`make O_NORL=1`) - add `strip` and static build (`make O_STATIC=1`) options - show prompt help and allow `c` and `p` commands in either REPL mode - add `BCAL_BIT_ANSI_COLOR_CODE` to customize set bit color - add sum() function for whitespace-separated numbers - add `-H` option to show integral maths results in hexadecimal Package changes: - Support for 'readline' and 'editline' options