|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Quick & Easy Number Formatting question
I currently have a line of code
<?php echo "£" . number_format((($annual_interest_percent) * ($financing_price) * $year_term) / ($year_term * 12), "2", ".", "thousands_sep"); ?> which produces a figure of 14,625,000.00 How do I amend the number formatting to produce a figure of 146,250.00 ? (I'm new to php) Thanks |
|
#2
|
|||
|
|||
|
Can you add some values to those variables so someone can better understand where the problem really lies?
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
<?php echo "£" . number_format(((0.065) * (90000) * 25) / (25 * 12), "2", ".", "thousands_sep"); ?>
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Quick & Easy Number Formatting question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|