Hi again,

Would someone show me how to round numbers:


$bank_points= $ret;
$interest = .095;
$months = 12;
$weeks = 52;
$days=365;

$query="SELECT  bank_points FROM wt_users WHERE uid={$session["uid"]}";
$ret = mysql_query($query);
while(list($bank_points)=
mysql_fetch_row($ret))

$yearly_interest=$bank_points * $interest;
print("<BR>Your yearly interest is : $yearly_interest");

$daily_interest=$yearly_interest / $days;
$round_daily_interest = round($daily_interest);
print("<BR>Your daily interest is : $daily_interest");

Thanks
Jennifer Downey



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to