电动刨子:请问ASP中,怎么让输出的数据保留两位小数点??
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/15 04:22:44
比如,
a=1/3
response.write a
这样就输出0.3333333333......
怎样写,能让他输出 0.33,保留到小数点后两位??
a=1/3
response.write a
这样就输出0.3333333333......
怎样写,能让他输出 0.33,保留到小数点后两位??
int(a*100)/100