Re: Currency precision
Perfect - thank you. On Aug 12, 8:26 am, Robert P wrote: > After reviewing /cake/libs/view/helpers/number.php try: > > $number->currency($property['Property']['price'], 'GBP', array > ('places' => 0)); > > If the documentation doesn't answer your question, the source will. > > On Aug 12, 1:56 pm, jburns wrote: > > > > > I'd like to take a number and display it as currency but with a > > defined precision - for example £100,000. I have tried the following: > > > $number->currency($number->precision($property['Property']['price'], > > 0 ),'GBP') > > > which nests the $number->precision function inside of the $number- > > > >currency function, but the precision is being ignored. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Currency precision
After reviewing /cake/libs/view/helpers/number.php try: $number->currency($property['Property']['price'], 'GBP', array ('places' => 0)); If the documentation doesn't answer your question, the source will. On Aug 12, 1:56 pm, jburns wrote: > I'd like to take a number and display it as currency but with a > defined precision - for example £100,000. I have tried the following: > > $number->currency($number->precision($property['Property']['price'], > 0 ),'GBP') > > which nests the $number->precision function inside of the $number- > > >currency function, but the precision is being ignored. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Currency precision
I'd like to take a number and display it as currency but with a defined precision - for example £100,000. I have tried the following: $number->currency($number->precision($property['Property']['price'], 0 ),'GBP') which nests the $number->precision function inside of the $number- >currency function, but the precision is being ignored. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---