I have an integer 1000
- I would like to show it to the users as 10.00
I am wondering the best solution/practice for this?
Have tried the following, but none of these are the desired result:
<?php
echo number_format("1000")."<br>";
echo number_format("1000",2)."<br>";
echo number_format("1000",2,",",".");
?>
Outputs the following:
1,000
1,000.00
1.000,00