-
Notifications
You must be signed in to change notification settings - Fork 443
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
Precise money #335
base: master
Are you sure you want to change the base?
Precise money #335
Conversation
Few considerations before continuing:
What should be next?
|
Is this still active? I presume I am right in thinking that this is to allow us to perform operations using more decimal places? Ie |
@m4tthumphrey You can already do that. new Money(11535, new Currency('GBP'));
new Money(4251, new Currency('GBP')); You should implement your own currency with subunits set to 4. See the BitcoinCurrencies how to do this. If there are more currencies involved than only the pound, use the Aggregate Currencies class to turn multiple currencies it into a single repository.
|
I was more enquiring than actually looking to use it! I have just looked into the custom currencies and I see how it works now! Thanks! |
Hello, What's the status of this? Is it gonna be merged? |
No progress. I expect to look at in the end of the year. If someone could give some feedback, that could - of course - help to have the feature earlier. |
@sagikazarmark I am planning to update this PR. The considerations I mentioned earlier on are still valid. Is this the right path? Meaning: should we create a new class So the questions are?
|
My initial answers are as follows.
|
@sagikazarmark Could you emphasize your thoughts. Maybe just start with some initials thoughts. Then we will iterate towards the optimal solution. |
The scale (precision) parameter was missing from the comparison operation, leading to wrong results.
Hi @frederikbosch. Here at Mollie we think adding a |
@willemstuursma Cool to see you drop in. Could you emphasize why we should not be able to convert to |
@frederikbosch Why don't you drop by our office next week and we can discuss it with out team - maybe a few beers and we can see how Mollie can help bring this to fruition. |
@willemstuursma Great idea. However, I am on honeymoon leave from Tuesday. So, it will have to wait until November. |
Oh congrats! Well, send me an email when you're back and enjoy your honeymoon together! |
@frederikbosch congrats! Let's talk about this later! |
Fix comparison operation
Hi all. Not sure where to see if there is any activity on this (and the other release) items? |
@pcbulldozer in the mean time, you can also create high precision currencies and use those. |
thanks @willemstuursma will be giving this some thought today! appreciate the response. |
@willemstuursma Did you take a look and mind sharing your solution? |
Just checking in on this thread. I would love to see this PR come to fruition. Not sure what the current status on this is? Did you guys ( @frederikbosch and @willemstuursma ) come to a solution/agreement on how to implement this? Is there something I could do to help? I see there are currently conflicts, but not sure if this idea is abandoned. |
So, what do other do with high fraction 8+ numbers? |
Adds
PreciseMoney
. Fixes #7.