newphpcoder Posted November 22, 2010 Share Posted November 22, 2010 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.99I hope somebody can help me...thank you.. Link to comment Share on other sites More sharing options...
birbal Posted November 22, 2010 Share Posted November 22, 2010 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 http://php.net/function.round Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.