View previous topic :: View next topic |
Author |
Message |
newphpcoder -
Joined: 24 Sep 2010 Posts: 2
|
Posted: Mon Nov 22, 2010 2:53 am Post subject: Add code for decimal places |
|
|
Good day!
I want to know where I can put this code :
[PHP]
number_format($num), 2;
[/PHP]
I have this code:
[PHP]
echo mysql_result ($result,$ctr,"inputqty");
[/PHP]
I want the output if this code is in 2 decimal places for example the output in this code is: 1.9856211 I want to become is like this 1.99
I hope somebody can help me...thank you.. |
|
Back to top |
|
|
Toasty -
Joined: 21 Feb 2008 Posts: 298 Location: Chicago, IL
|
|
Back to top |
|
|
markspenser -
Joined: 23 Jul 2009 Posts: 14
|
Posted: Fri Dec 24, 2010 7:55 am Post subject: |
|
|
@newphpcoder Had the shared code helped you? |
|
Back to top |
|
|
|