Jump to content


Photo

Formating Numbers


  • Please log in to reply
1 reply to this topic

#1 otuatail

otuatail
  • Members
  • PipPipPip
  • Advanced Member
  • 960 posts

Posted 20 April 2006 - 06:54 PM

I have searched the online manual for formating a number 2 3 decimal places. Can someone help out here
$mynumber = 16.458302303 to

<td>16.45</td>

Desmond.


#2 cmgmyr

cmgmyr
  • Members
  • PipPipPip
  • Advanced Member
  • 1,278 posts
  • LocationUSA

Posted 20 April 2006 - 07:01 PM

number_format($mynumber,2)





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users