sharkdp / insect

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

Octal, Hex and binary number input does not work #362

Closed ironsm4sh closed 1 year ago

ironsm4sh commented 1 year ago

Even while the main readme shows octal, hex and binary inputs, they do not work.

Inputting them using the local or web version shows the same output where the format identifier (x, b or o) are seen as a variable that does not exist

> 0b10 + 10

  0 × b10 + 10

  Unknown identifier: b10
> 0xFF + 10

  0 × xFF + 10

  Unknown identifier: xFF
> 0o3 + 10

  0 × o3 + 10

  Unknown identifier: o3

Am I inputting these numbers incorrectly?

sharkdp commented 1 year ago

Sorry, this is a relatively new feature and I have not yet released a new version. But I have now deployed it to https://insect.sh. You might need to refresh the page with a cache clear (ctrl+shift+r in firefox and chrome)

ironsm4sh commented 1 year ago

I see. It works correctly now! Thank you.

triallax commented 1 year ago

Sorry, this is a relatively new feature and I have not yet released a new version.

It's actually included in v5.8.0. :)

sharkdp commented 1 year ago

oops :-)