고마워요
문제점 찾아어요
var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6;
var point = parseFloat(basic_point);
if (typeof(f.it_amount) != 'undefined')
f.it_amount.value = amount;
if (typeof(f.disp_sell_amount) != 'undefined')
f.disp_sell_amount.value = number_format(String(amount * ct_qty));
if (typeof(f.disp_cust_amount) != 'undefined')
f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty));
if (typeof(f.it_point) != 'undefined') {
f.it_point.value = point;
f.disp_point.value = number_format2(String(point * ct_qty));
여기에 number_format2 추가 하면 00두개가 나와요
댓글 5개
예제
<?
echo sprintf("%.0f", ($it[it_cust_amount] - get_amount($it)) / $it[it_cust_amount] * 100);
?>
홈페이지 주소는 http://www.cnywsj.net/
문제점 찾아어요
var amount = basic_amount + opt1 + opt2 + opt3 + opt4 + opt5 + opt6;
var point = parseFloat(basic_point);
if (typeof(f.it_amount) != 'undefined')
f.it_amount.value = amount;
if (typeof(f.disp_sell_amount) != 'undefined')
f.disp_sell_amount.value = number_format(String(amount * ct_qty));
if (typeof(f.disp_cust_amount) != 'undefined')
f.disp_cust_amount.value = number_format(String(cust_amount * ct_qty));
if (typeof(f.it_point) != 'undefined') {
f.it_point.value = point;
f.disp_point.value = number_format2(String(point * ct_qty));
여기에 number_format2 추가 하면 00두개가 나와요