PACKAGE.md 981 B

bc-7.0.3

bc is an arbitrary-precision calculator language with a syntax similar to the C programming language. It supports interactive execution of statements, arbitrary precision numbers, and execution of scripts.

Features

  • Arbitrary precision arithmetic
  • Interactive calculator mode
  • Script execution capabilities
  • Standard mathematical functions
  • Support for variables and arrays
  • GNU bc extensions compatibility
  • Readline support for improved line editing

Usage

bc can be used interactively:

bc
scale=20
1/3
.33333333333333333333
quit

Or for script execution:

bc -l script.bc

Installation

This package installs the bc calculator with readline support enabled, providing enhanced line editing features including command history, tab completion, and cursor movement.

Dependencies

  • readline library (for enhanced line editing)
  • GCC compiler (for building)
  • Make utility (for building)
  • Bash shell (for script execution)