sharkdp / insect

High precision scientific calculator with support for physical units
https://numbat.dev/
MIT License
3.17k stars 126 forks source link

Calculate with Mega tons is not possible #351

Closed 0xflotus closed 1 year ago

0xflotus commented 1 year ago
> 3e6 t -> Mt
  3000000 ton ➞ Mt
  Unknown identifier: Mt
triallax commented 1 year ago

You can use Mton or megaton instead.

sharkdp commented 1 year ago

Hm. This might be caused by this special case:

https://github.com/sharkdp/insect/blob/75443006d910ab5680921266db917986fc12561c/src/Insect/Parser.purs#L319-L321

sharkdp commented 1 year ago

Closing this. In Numbat, we removed t altogether, as it's such a useful identifier to have available (for time).