Click here to Skip to main content
15,893,904 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
problem with large number..
<?php
$present_value='99999999999999999';
echo number_format($present_value,2)
?>

It gives me result 10,000,000,000,000,000.00
I dont want it , I want like 999,999,999,999,999,999.00
Posted

Try this
number_format($present_value, 2, '.', ',')
 
Share this answer
 
Shows same result as above.........:~
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900