scottjgd Posted August 30, 2010 Report Posted August 30, 2010 Hello I have looked around for a fix for this problem but have not been able to come up with anything to fix this. what i need is to take the fuel burn stats down to 2 place instead of the current 9 places i have tried the format_number but it doesn't seem to be working i'm not sure what i need to do to get this working. Any help would be greatly appreciated. Thanks Scott Quote
Administrators simpilot Posted August 30, 2010 Administrators Report Posted August 30, 2010 It should be something like -> number_format($yourvariable, 2) More info on php number_format can be found here -> http://php.net/manual/en/function.number-format.php Quote
Moderators mark1million Posted August 30, 2010 Moderators Report Posted August 30, 2010 If your using Toppilot then this also works, <?php echo round(StatsData::TotalFuelBurned(), 0); ?> Quote
scottjgd Posted August 31, 2010 Author Report Posted August 31, 2010 If your using Toppilot then this also works, <?php echo round(StatsData::TotalFuelBurned(), 0); ?> Thanks worked like a charm Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.