Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Add code for decimal places

newphpcodernewphpcoder Member Posts: 21
Good day!

I want to know where I can put this code :
number_format($num), 2;

I have this code:
echo mysql_result ($result,$ctr,"inputqty");

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..


Sign In or Register to comment.