Forked cakphp today #163

wants to merge 2 commits into

1 participant



I forked cakephp today.


000aLinux added some commits Jul 31, 2011
@lorenzo lorenzo closed this Jul 31, 2011
@dogmatic69 dogmatic69 added a commit to dogmatic69/cakephp that referenced this pull request Jan 11, 2013
@dogmatic69 dogmatic69 Before this change 0.00 and '0.00' are treated differently. Floats fr…
…om the database are returned as the string

version while doing calculations will normally end up as floats.

This causes output differences on pages like order totals or invoices where there is a mix of calculated values
and database values.

	Number::currency(0.00, 'GBP') -> £0.00
	Number::currency('0.00', 'GBP') -> 0p

Both versions will return `£0.00` (or whatever 0 is configured to return).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment