how to round figure mysql result value

```
$earnedbasic=$runrows['salary']/$runrows['days']*$runrows['countdaystotal'];

```

**example: salary divide by days multiply by workingdays**

```
150 salary
29 days
30 workingdays

150/29x30=155.17241

```

if result is like that
so i want round figure the value example now 155.17241 and i want like that 155.173 only
please help me to fix this issue

```
<?php

       while ($runrows = mysql_fetch_assoc($run))
       {

        //get data
       $workerid = $runrows['workerid'];
       $keywords = $runrows['keywords'];
       $salary =  $runrows['salary'];
       $days = $runrows['days'];
       $countdaystotal = $runrows['countdaystotal'];
       $earnedbasic=$runrows['salary']/$runrows['days']*$runrows['countdaystotal'];

 echo "<table class='sortable' border='1' cellpadding='10'>";
        echo "<tr> <th>ID</th> <th>Name</th><th>Basic</th><th>Days</th> <th>Earned Basic</th><th>Total Salary</th></tr>";

     echo "<tr width='50%' onmouseover=\"this.style.backgroundColor='#999999';\" onmouseout=\"this.style.backgroundColor='#d4e3e5';\"><td width='20%'><a href=\"detail.php?id=$id\" class=\"style1\">$workerid</a></td>
     <td width='20%'>$keywords</td>
    <td width='20%'>$salary</td>
     <td width='20%'>$countdaystotal</td>
     <td width='20%'>$earnedbasic</td></tr>";

echo "</table>";
       }

     }

    }

?>

```