[thelist] PHP - Displaying dollar amounts
Steve Cook
sck at biljettpoolen.se
Wed Nov 1 02:25:04 CST 2000
Look up printf and/or sprintf in the PHP manual. This is a function for
defining how a variable will be printed - I can't remember the exact syntax,
but you'll find the solution there.
.steve
----------------------------------
WapWarp - http://wapwarp.com
Wap-Dev - http://www.wap-dev.net
Cookstour - http://cookstour.org
----------------------------------
> -----Original Message-----
> From: CDitty [mailto:mail at redhotsweeps.com]
> Sent: den 1 november 2000 09:17
> To: thelist at lists.evolt.org
> Subject: [thelist] PHP - Displaying dollar amounts
>
>
> I am trying to display some dollar amounts using php. They
> are displaying
> fine, but when I do any mathematical computation on it, it
> loses the last 0
> when it is a round number. ie...displays 5.5 instead of 5.50.
>
> Can anyone tell me how to fix it?
>
> Thanks
>
> CDitty
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
More information about the thelist
mailing list