Wednesday, August 1, 2012

Number Problem in V1.3

Hi,

$this->Number->addFormat('EUR', array('after' => ' €', 'decimals' => ',', 'thousands' => '.', 'negative' => '-'));
$this->Number->currency($value, 'EUR');

When I return money amounts, saved in DB as decimal(10,2) it returns the following

25.00 => 25€     correct
0.33 => 33 €      not correct!!

What is wrong in my syntax above?
How do I get the right format?

Thanks for help!!

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: