Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

fend

> 编程语言
Open source

Arbitrary-precision unit-aware calculator

1.0K stars0 likes2 views
WebsiteGitHub

About

Arbitrary-precision unit-aware calculator

fend

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

  • Homebrew
  • MacPorts
  • AUR (built from source)
  • AUR (pre-built binary)
  • xbps
  • AOSC OS
  • nixpkgs
  • Windows Package Manager
  • Chocolatey
  • NPM fend-wasm package
  • NPM fend-wasm-web package
  • NPM fend-wasm-nodejs package
  • Telegram Bot
  • Pkgx

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:

  • MicroPad
  • Fendesk
  • metasearch2
  • FendApp
  • Asleh

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.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcalculatorrustunits-of-measure

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言