Arbitrary-precision unit-aware calculator
  • Rust 93.7%
  • TypeScript 3.2%
  • Shell 2.1%
  • PowerShell 0.4%
  • JavaScript 0.2%
  • Other 0.4%
Find a file
2026-02-05 09:44:27 +00:00
.cargo Link app icon using build script 2024-10-23 09:13:54 +00:00
.github Add pull request template 2026-01-09 13:36:03 +13:00
cli Bump dependencies, use rustls by default 2026-01-24 03:50:10 +00:00
contrib Use npm adduser in deploy.sh 2025-07-14 11:48:20 +00:00
core Fix test failures 2026-01-02 00:06:14 +00:00
documentation Remove linux-armv7-gnueabihf build 2025-07-09 12:00:09 +00:00
icon Fix deprecated ImageMagick invocation 2024-10-23 09:22:14 +00:00
telegram-bot Bump dependencies, use rustls by default 2026-01-24 03:50:10 +00:00
wasm Bump dependencies, use rustls by default 2026-01-24 03:50:10 +00:00
web Fix web build script ImageMagick path 2026-02-05 09:44:27 +00:00
windows-msix Fix more deprecated ImageMagick invocations 2024-10-23 09:27:29 +00:00
windows-wix Update dependencies 2025-11-12 11:29:41 +00:00
.codecov.yml Relax code coverage checks 2022-09-06 21:06:39 +12:00
.git-blame-ignore-revs Add .git-blame-ignore-revs 2023-07-08 08:53:01 +00:00
.gitignore Update dependencies 2024-10-21 09:56:38 +00:00
.rustfmt.toml Fix formatting 2023-07-08 08:49:59 +00:00
Cargo.lock Release version 1.5.8 2026-01-24 17:07:03 +13:00
Cargo.toml Release version 1.5.8 2026-01-24 17:07:03 +13:00
CHANGELOG.md Release version 1.5.8 2026-01-24 17:07:03 +13:00
CODE_OF_CONDUCT.md Add code of conduct 2022-10-18 04:08:41 +00:00
CONTRIBUTING.md Update fend website URL 2022-08-26 21:17:12 +12:00
LICENSE.md Support trait impls for random number generation 2025-06-30 10:15:54 +00:00
README.md docs: add android client asleh to readme (#359) 2025-07-17 18:00:27 +12:00

fend

build codecov crates.io downloads

fend icon

fend is an arbitrary-precision unit-aware calculator.

Unique features:

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

See the manual for more information.

Web Interface

fend is available on the web at printfn.github.io/fend.

Installation

The easiest way to install fend locally is via your package manager:

Package Manager Command
Homebrew brew install fend
MacPorts sudo port install fend
AUR (Arch Linux) yay -S aur/fend-bin
AOSC OS oma install fend
Xbps (Void Linux) xbps-install fend
Nix Add nixpkgs.fend to your config, or install ephemerally using nix-shell -p fend.
Cargo cargo install fend
Windows Package Manager winget install fend
Chocolatey choco install fend
Scoop scoop install fend
Pkgx pkgx fend

Alternatively, you can manually download the latest stable binaries here.

Once fend is installed, run fend to start a REPL session:

$ fend
> 1 ft to cm
30.48 cm
>

Packages

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
> 100 C to F
210 °F
> temperature = 30 °C
30 °C
> temperature to °F
86 °F
> roll d20
8
> roll 4d6
17

Projects using fend

These are some projects making use of fend:

Feel free to make a pull request to add your own!

License

fend is available under the MIT license. See LICENSE.md for more information.