Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(1500 USD -> HKD) / 3 #3

Open
whitequark opened this issue Sep 29, 2016 · 3 comments
Open

(1500 USD -> HKD) / 3 #3

whitequark opened this issue Sep 29, 2016 · 3 comments
Labels
bug core For issues related to core Rink functionality

Comments

@whitequark
Copy link
Contributor

I expect the subject line to work. Is there any reason it can't?

@tiffany352
Copy link
Owner

I'll have to refactor some internals to make that work, but for now you can write constants in the right-hand side of conversions, e.g.

> 1500 USD -> 3 HKD
8676400/2237, approx. 3878.587 * 3 HKD (money)

@whitequark
Copy link
Contributor Author

Ah I see--the example in the subject line is minimized, so that wouldn't help me terribly much. But I can wait.

@tiffany352
Copy link
Owner

The implementation of this is proving to be more complicated than I anticipated, as it requires tagging numbers with the originally specified units. I have a WIP implementation locally that I've been working on for a couple hours.

Your original case is working:

> (1500 USD -> HKD) / 3
approx. 3879.084 HKD (money)

But there are problems:

> mm
1000 m (length)
> mm^3
1.0e-27 m^3 (volume)
> pi -> hex
approx. 3.243f6a π (dimensionless)

@tiffany352 tiffany352 added bug core For issues related to core Rink functionality labels Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug core For issues related to core Rink functionality
Projects
None yet
Development

No branches or pull requests

2 participants