tiffany352 / rink-rs

Unit conversion tool and library written in rust
https://rinkcalc.app/about
GNU General Public License v3.0
442 stars 28 forks source link

Add support for number base conversions #4

Closed whitequark closed 7 years ago

whitequark commented 7 years ago

E.g.:

You have: 0x1b1e48
You want: 
        Definition: 1777224

and probably the other way too (no idea how to do it in GNU units)

tiffany352 commented 7 years ago

Should already be supported, unless you mean something else.

> 0xfff
4095 (dimensionless)
> 0b1110011
115 (dimensionless)
> 12345 -> hex
3039 (dimensionless)
> pi -> bin
approx. 11.00100 (dimensionless)
> 45678 -> base 26
2fem (dimensionless)
whitequark commented 7 years ago

Hmm, that's not in rink 0.3.2... needs a cargo push?

whitequark commented 7 years ago

Ah right cargo install --git https://github.com/tiffany352/rink-rs rink -f works, thanks!