Isn't the number helper the equivalent of number_format()? How can I format the computed values coming from my component?
part of my controller code: $this->data['Model']['field'] = $this->component->function($salary). '.00'; If you notice the . '.00' I have in my code above, I'm having problems with formatting the computed values in a money format. For the meantime, I'm concatenating the result with the decimal point. But I want to format it properly. I've tried to use the number helper and I've searched through the net about this, but I can't get enough information. brian-263 wrote: > > > I'm not sure what you mean. sprintf()? > > http://www.php.net/manual/en/function.sprintf.php > > -- View this message in context: http://www.nabble.com/Forms-with-math-computations-and-multiple-buttons-tp23718059p23753775.html Sent from the CakePHP mailing list archive at Nabble.com. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
