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

Would it be useful to add more vars like Zero? #103

Open
kempeng opened this issue Jul 20, 2018 · 1 comment
Open

Would it be useful to add more vars like Zero? #103

kempeng opened this issue Jul 20, 2018 · 1 comment

Comments

@kempeng
Copy link

kempeng commented Jul 20, 2018

I was wondering whether it would make sense, similar to Zero, to define var's like One, Two .. Ten, Hundred, Thousand, and perhaps Half, Quarter ... ? Make it easier to use these values in Decimal's math/comparison functions?

Ie var One New(1,0)
var Half New(5,-1)

@mwoss
Copy link
Member

mwoss commented Dec 8, 2019

@kempeng Personally, I'm not convinced of this idea. I've never saw a decimal library that provides such constant as public API. The zero value in the decimal library was created only to make computations faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants