./math/bcal, Storage and general-purpose calculator

[ Image CVSweb ] [ Image Homepage ] [ Image RSS ] [ Image Required by ] [ Image Add to tracker ]


Branch: CURRENT, Version: 2.5, Package name: bcal-2.5, Maintainer: sjmulder

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.


Required to run:
[math/bc]

Required to build:
[pkgtools/cwrappers]

Master sites:

Filesize: 41.269 KB

Version history: (Expand)


CVS history: (Expand)


   2026-04-10 22:35:18 by Sijmen J. Mulder | Files touched by this commit (2)
Log message:
math/bcal: Update to 2.5

Changes:
 - remove dependency on external tools (bc, calc)
 - support general purpose calculations (program option/prompt
   switch 'b')
    - arithmetic: addition, subtraction, multiplication, division,
      modulo
    - bitwise: AND (&), OR (|), XOR (^), complement (~), lshift (<<),
      rshift (>>)
    - functions: exp(n), log(base, n), ln(n) [natural log],
      pow(n, exponent), root(radical, n)
 - add program option/prompt switch p to show bit positions with bit
   value of a number
 - remove commas from input for general purpose calculations

Package now includes a test target.
   2022-01-29 15:55:08 by Sijmen J. Mulder | Files touched by this commit (2)
Log message:
math/bcal: Update to 2.4

 - Support "exit" and "quit" at prompt
   2021-11-19 23:19:39 by Sijmen J. Mulder | Files touched by this commit (2)
Log message:
math/bcal: Update to 2.3

Changes:
 - show binary conversion output in octets for readability
 - handle ^D
 - quit program or 'exit' or 'quit'
 - fix broken terminal with calc as backend on "undefined input" (#36)
   2021-10-26 12:56:13 by Nia Alarie | Files touched by this commit (458)
Log message:
math: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 16:28:36 by Nia Alarie | Files touched by this commit (458)
Log message:
math: Remove SHA1 hashes for distfiles
   2020-01-09 13:21:37 by Sijmen J. Mulder | Files touched by this commit (3)
Log message:
bcal: Update to 2.2

Changes:
 - Support calc for multi-base expressions
 - To use calc, export BCAL_USE_CALC=1
 - Fix lint issues
 - Fix issue #30
 - Updated auto-generated packages
 - More portable Makefile
   2019-06-12 22:57:07 by Sijmen J. Mulder | Files touched by this commit (1)
Log message:
math/bcal: restrict to 64 bit platforms

bcal is 64 bit only by design so use ONLY_FOR_PLATFORM to prevent build
failures on unsupported platforms.
   2019-05-06 11:17:13 by Sijmen J. Mulder | Files touched by this commit (8)
Log message:
Update my (sjmulder) maintainer email address