Mega Code Archive

 
Categories / Php / Data Type
 

Number_format() enables us to determine the precision we require using a second argument

<?php print number_format (100000.56, 2 ); print number_format(100000.56, 4 ); ?>