erikjan Posted November 2, 2006 Share Posted November 2, 2006 Can someone please help. Thanks in advance!Just image this simple code:<?php$amounteuro = 83.50;$amounteuro=$amounteuro + 1.50;echo $amounteuro;?>$amounteuro will give 85.But i want 85.00, with two decimals.How do I do that. Link to comment https://forums.phpfreaks.com/topic/25938-decimal/ Share on other sites More sharing options...
alpine Posted November 2, 2006 Share Posted November 2, 2006 http://no.php.net/manual/en/function.number-format.php Link to comment https://forums.phpfreaks.com/topic/25938-decimal/#findComment-118461 Share on other sites More sharing options...
erikjan Posted November 2, 2006 Author Share Posted November 2, 2006 Thank you very much!! Link to comment https://forums.phpfreaks.com/topic/25938-decimal/#findComment-118468 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.