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
Ree
Forum Regular
Posts: 592 Joined: Fri Jun 10, 2005 1:43 am
Location: LT
Post
by Ree » Thu Mar 30, 2006 11:13 am
Do you guys know a quick way to format floats? For example, I need only 2-digit fractions: 1/3 would be 0.33 instead of 0.3333.....
pickle
Briney Mod
Posts: 6445 Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:
Post
by pickle » Thu Mar 30, 2006 11:25 am
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Ree
Forum Regular
Posts: 592 Joined: Fri Jun 10, 2005 1:43 am
Location: LT
Post
by Ree » Thu Mar 30, 2006 11:35 am
Great, thanks.