-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Better number format with CakeNumber #1986
Comments
31st Aug 2012, Mark Story said: Patches with test cases are generally a good candidate for getting into CakePHP, also new features for 2.x have to not break existing behavior. This seems like the kind of behavior that could be controlled with a new option to the existing formatting methods. Or in a new formatting method. |
31st Aug 2012, Ingo Siebeck said: Yes, i think a new method would be the best. Because the existing is fine for all the money formatting stuff. |
Shouldn't we change the milestone for this to 3.0 because @dereuromark's PR wasn't merged? |
Did you want to make the new merged ticket? |
I just think it would help to get a a more picture of what needs to be done. |
Closing as number formatting has been revamped using ext/intl for 3.0. See #4086 |
Created by Ingo Siebeck, 31st Aug 2012. (originally Lighthouse ticket #3170):
At the moment, the CakeNumber Class seems to be more for money and currency formating.
My problem was, that i want to format a Number like 2.00 to the german format 2,00 and cut the zeros, if the decimal part is zero.
i change the CakeNumber Class like this:
from:
into
any chance to get better formatting possibilities into this class?
The text was updated successfully, but these errors were encountered: