php number_format help!!?

XBOX360 MW2

New member
basically this php script outputs everything to 4 decimal points
ie 9.3434

i want everything to show with only 2 deicmal points
ie 9.34


i know it has something to do with number_format

here is all the number_format cods from the script
how do i change it to display only 2 decimal point

I was told this, not sure how to change it though?

It's the number_format() calls you'll want to modify:
grep -r number_format *

lib/include/functions.php: return number_format( $points / $ratings, 4 );
lib/jpgraph/Examples/barscalecallbackex1.php: return number_format($aVal);
www/stats.php: $pointsWeek = number_format( sqlResult( $query ) );
www/stats.php: $ratingsWeek = number_format( sqlResult( $query ) );
www/stats.php: $commentsWeek = number_format( sqlResult( $query ) );
www/stats.php: $signupsWeek = number_format( sqlResult( $query ) );
www/stats.php: $pointsMonth = number_format( sqlResult( $query ) );
www/stats.php: $ratingsMonth = number_format( sqlResult( $query ) );
www/stats.php: $commentsMonth = number_format( sqlResult( $query ) );
www/stats.php: $signupsMonth = number_format( sqlResult( $query ) );
www/stats.php: $pointsTotal = number_format( sqlResult( $query ) );
www/stats.php: $pointsToday = number_format( sqlResult( $query ) );
www/stats.php: $ratingsTotal = number_format( sqlResult( $query ) );
www/stats.php: $ratingsToday = number_format( sqlResult( $query ) );
www/stats.php: $commentsTotal = number_format( sqlResult( $query ) );
www/stats.php: $postsTotal = number_format( sqlResult( $query ) );
www/stats.php: $weblogsTotal = number_format( sqlResult( $query ) );
www/stats.php: $weblogCommentsTotal = number_format( sqlResult( $query ) );
www/stats.php: $commentsToday = number_format( sqlResult( $query ) );
www/stats.php: $usersTotal = number_format( sqlResult( $query ) );
www/stats.php: $usersActive = number_format( sqlNumRows( $query ) );
www/stats.php: $imagesActive = number_format( sqlResult( $query ) );
www/stats.php: $signupsToday = number_format( sqlResult( $query ) );
www/imageStats.php: $pointsWeek = number_format( sqlResult( $query ) );
www/imageStats.php: $ratingsWeek = number_format( sqlResult( $query ) );
www/imageStats.php: $commentsWeek = number_format( $commentsWeek );
www/imageStats.php: $pointsMonth = number_format( sqlResult( $query ) );
www/imageStats.php: $ratingsMonth = number_format( sqlResult( $query ) );
www/imageStats.php: $commentsMonth = number_format( $commentsMonth );
www/imageStats.php:$pointsTotal = number_format( sqlResult( $query ) );
www/imageStats.php:$pointsToday = number_format( sqlResult( $query ) );
www/imageStats.php:$ratingsTotal = number_format( sqlResult( $query ) );
www/imageStats.php:$ratingsToday = number_format( sqlResult( $query ) );
www/imageStats.php:$commentsTotal = number_format( $commentsTotal );
www/imageStats.php:$commentsToday = number_format( $commentsToday );
www/iStatsCommentsMonth.php: $datay[] = number_format( $commentsCount );
www/search.php: $searchTime = number_format( $time1 + $time2, 4 );
www/iStatsCommentsWeek.php: $datay[] = number_format( $commentsCount );
www/iStatsCommentsToday.php: $datay[] = number_format( $commentsCount );


much thanks if you can answer this!
 
Back
Top