for문 질문
본문
아래 for문에서요
소수점두째짜리까지 표현하고 싶은데 어떻게 해야되나요?
<?php FOR
($i=0; $row=sql_fetch_array($result); $i++)
{$loop_grp = floor($loop_n/5);
$bg_class = floor($loop_grp%2) == 1 ? ' background:#ebf8ff;' : '';
$loop_n++;
$select_date = date('m/d', strtotime($row['ct_select_time']));
$it_name = get_text(stripslashes($row['it_name']));
$sql = "SELECT it_10 FROM {$g5['g5_shop_item_table']} ";
$sql .= "WHERE it_id = '{$row['it_id']}'";$res = sql_fetch($sql);
IF ( $row['io_type'] ){$opt_price = $row['io_price'];}ELSE{$opt_price = $row['ct_price'] + $row['io_price'];
}
$sell_price = $row['ct_price'] * $row['ct_qty'];
$tex_n = floor($sell_price/11);
$price_tot += ($sell_price-$tex_n);
$price_sum += $sell_price;
?>
답변을 작성하시기 전에 로그인 해주세요.