-
Notifications
You must be signed in to change notification settings - Fork 966
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
ToQuantity does not support long quantities #503
Comments
👍 |
IMHO it's not really intuitive behavior.
I think, we should provide |
I agree. What I pasted is a quick fix I was using at the time. My problem was that my types are usually long, and frequently larger than int.MaxValue, so casting does work. While ShowQuantityAs.Words is not as clear as ShowQuantityAs.Numeric, I agree it should be supported. I was not suggesting my code as the implementation. |
Tagging as vNext unless this can be completed in the next couple of weeks. |
@onovotny I don't think that we can fix this in a couple of weeks. To make it feature complete we need to complete a lot of languages. |
Merged in e88b07e. Additional langs can be added as they're available. |
It would be useful if ToQuantity supported long quantities in addition to int. Something like the following would work but will not honor ShowQuantityAs.Words for large positive or negative quantity values:
The text was updated successfully, but these errors were encountered: