scottjgd Posted August 30, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 30, 2010 Administrators Report Share 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 Link to comment Share on other sites More sharing options...
Moderators mark1million Posted August 30, 2010 Moderators Report Share Posted August 30, 2010 If your using Toppilot then this also works, <?php echo round(StatsData::TotalFuelBurned(), 0); ?> Quote Link to comment Share on other sites More sharing options...
scottjgd Posted August 31, 2010 Author Report Share Posted August 31, 2010 If your using Toppilot then this also works, <?php echo round(StatsData::TotalFuelBurned(), 0); ?> Thanks worked like a charm Quote Link to comment Share on other sites More sharing options...
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.