Displaying a monetary value? [SOLVED]

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ridshack
Forum Commoner
Posts: 29
Joined: Wed Oct 11, 2006 10:34 pm

Displaying a monetary value? [SOLVED]

Post by ridshack »

Im running an equation through a loop to display a money value but I get more then two place holders past the cents like $45.0993 and I also may get $45.5 instead of $45.10 and $45.50

Can someone give me a clue for what I should be looking for? Im a bit stumped

Thank you,
Rid.
Last edited by ridshack on Sun Nov 12, 2006 4:23 pm, edited 1 time in total.
User avatar
hawleyjr
BeerMod
Posts: 2170
Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA

Post by hawleyjr »

User avatar
GeertDD
Forum Contributor
Posts: 274
Joined: Sun Oct 22, 2006 1:47 am
Location: Belgium

Post by GeertDD »

ridshack
Forum Commoner
Posts: 29
Joined: Wed Oct 11, 2006 10:34 pm

Post by ridshack »

Thanks guys… I knew it would be easy. Im a newb who is starting to get his footing.

rid
Post Reply