printfn / fend

Arbitrary-precision unit-aware calculator
https://printfn.github.io/fend
MIT License
587 stars 50 forks source link

“Missing” constants: `electroncharge`, `electronmass`, `protonmass` #296

Closed kseistrup closed 2 months ago

kseistrup commented 2 months ago

[ priority=low ]

The manual says:

Many constants are available, including:

  • [⋮]
  • electroncharge, electronmass, protonmass, etc.

However, fend v1.4.7 knows none of those.

Fend does know electron_charge, but none of the two masses (with or without underscore).

If the two masses make it into fend, please also add neutron_mass.


Thanks for fend, it's very useful. It's like units(1) on steroids.

printfn commented 2 months ago

I've added electron mass, proton mass and neutron mass now. If there's any other units/constants you'd like feel free to let me know, or make a PR!

kseistrup commented 2 months ago

Whauw, that was fast. Colour me impressed. :+1: