rink-rs
rink-rs copied to clipboard
Unit conversion tool and library written in rust
Closes #204
Currently, queries like `10!` fail with the message: ``` > 10! No such unit ! ``` When the expected result would be `3628800 (dimensionless)`
I find myself using Rink frequently to convert grams to pounds and ounces for input into another app that doesn't take grams. I can't find a straightforward way to handle...
This change allows using custom currency files similarly to how https://github.com/tiffany352/rink-rs/pull/172 allows using custom definitions files.
``` | £3 No such unit £3, did you mean £? ``` (per the 0.8.0 web interface at https://rinkcalc.app/ ) Given that `£n` (`$n`,`€n`…) is the usual way of writing...
I find it a bit confusing that currency conversion can show e.g. mega and milli units of currencies. ``` > 1 million GBP approx. 1.204920 megaeuro (money) > 42 yen...
Would it be beneficial to return a non-zero exit code when there is an error on the non-interactive CLI mode? I attempted to use it for my application launcher, but...