我喜欢的一种植物300字:请问ASP中,怎么让输出的数据保留两位小数点??
来源:百度文库 编辑:高考问答 时间:2024/05/16 02:23:07
比如,
a=1/3
response.write a
这样就输出0.3333333333......
怎样写,能让他输出 0.33,保留到小数点后两位??
a=1/3
response.write a
这样就输出0.3333333333......
怎样写,能让他输出 0.33,保留到小数点后两位??
int(a*100)/100