古代圆桌的名称和种类:请问ASP中,怎么让输出的数据保留两位小数点??
来源:百度文库 编辑:中科新闻网 时间:2024/06/06 03:16:26
比如,
a=1/3
response.write a
这样就输出0.3333333333......
怎样写,能让他输出 0.33,保留到小数点后两位??
a=1/3
response.write a
这样就输出0.3333333333......
怎样写,能让他输出 0.33,保留到小数点后两位??
int(a*100)/100