Hi Aaron, You could try number_format() and money_format for a start http://php.net/manual/en/function.number-format.php http://php.net/manual/en/function.money-format.php
:) Paul On Wed, Apr 21, 2010 at 3:56 PM, Aaron Cooper <[email protected]>wrote: > Does PHP have a native way for formatting positive and negative floats > like a bank would? > > e.g. > > 100.00 would be 100.00 CR > -75.00 would be 75.00 DR > > I'm about to write a simple method to do it, will take little work. Just > curious. > > Aaron > > -- > NZ PHP Users Group: http://groups.google.com/group/nzphpug > To post, send email to [email protected] > To unsubscribe, send email to > [email protected]<nzphpug%[email protected]> -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
