printfn / fend

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

[Feature] exchange rate convert support #254

Closed Lzzzzzt closed 6 months ago

Lzzzzzt commented 6 months ago

is that possible to add the function to convert different exchange rate? it seems need to connect to the internet, so it may be a rust compile feature.

printfn commented 6 months ago

Hi, I’m not sure what you mean. fend needs to connect to the internet to download up-to-date exchange rates.

If you’re using the CLI version you can configure fend to either connect to the UN treasury or the European Central Bank website for exchange rates, this is documented here. I don’t think baking in a fixed exchange rate at compile time would make much sense since we wouldn’t get up-to-date data.

Are you wanting to be able to manually specify exchange rates or something like that?

Lzzzzzt commented 6 months ago

sry, i don't notice that fend has this feature and thx. i will close this issue