Strider Xero
01-30-2003, 02:33 AM
Ok, first of all I know close to nothing when it comes to PHP. Yet I know enough to make a template using the simple 'echo' command.
Here's the equation that I have, which works just fine.
<?
$overall = ($action + $comedy + $romancedrama + $voiceacting + $artwork + $plotoriginality) / 6;
?>
This equation works just fine, but my only complaint is that it turns out as like 7.3333333333333333333333
Is there any way that I could simply make it round up to the nearest tenth making it just display 7.3??
Here's the equation that I have, which works just fine.
<?
$overall = ($action + $comedy + $romancedrama + $voiceacting + $artwork + $plotoriginality) / 6;
?>
This equation works just fine, but my only complaint is that it turns out as like 7.3333333333333333333333
Is there any way that I could simply make it round up to the nearest tenth making it just display 7.3??