#calculator #cli #conversion #math #tool

app fend

Calculator and unit conversion tool

5 releases

new 0.1.4 Sep 15, 2020
0.1.3 Sep 5, 2020
0.1.2 Sep 2, 2020
0.1.1 Aug 31, 2020
0.1.0 Aug 31, 2020

#58 in Math

Download history 109/week @ 2020-08-29 112/week @ 2020-09-05 91/week @ 2020-09-12

90 downloads per month

MIT license

165KB
4.5K SLoC

Fend

build codecov crates.io downloads docs.rs

Fend is an arbitrary-precision unit-aware calculator.

Unique features:

  • Arbitrary-precision arithmetic using rational numbers
  • Full support for complex numbers
  • Binary, octal, hexadecimal and all other bases between 2 and 36
  • Keeps track of units, with support for SI, US and UK customary and many historical units
  • Emacs-style CLI shortcuts
  • Trigonometric functions

See the manual for more information.

Installation

Install fend by running cargo install fend in your terminal. Alternatively you can download the latest stable binaries here.

You can then run fend to start a REPL session:

$ cargo install fend
...
$ fend
> 1 ft to cm
30.48 cm
>

Manual

You can find the Fend manual here.

Examples

> 5'10" to cm
177.8 cm
> cos (pi/4) + i * (sin (pi/4))
approx. 0.7071067811 + 0.7071067811i
> 0b1001 + 3
0b1100
> 0xffff to decimal
65535
> 1 lightyear to parsecs
approx. 0.3066013937 parsecs

Changelog

See here: CHANGELOG.md

License

Fend is MIT-licensed. See LICENSE.md for more information.

Fend optionally includes the GPLv3-licenced definitions.units and currency.units data files from GNU Units. This can be changed via the gpl feature defined in core/Cargo.toml.

Dependencies

~1–1.4MB
~26K SLoC