格式化数据输出示例

<% mynum=123.4567 response.write "

"&mynum&"
" response.write formatnumber(mynum,0)&"

"&"
" response.write formatnumber(mynum,0) &"

" response.write formatnumber(mynum,2) &"
" response.write formatnumber(mynum,2) &"

" response.write formatnumber(mynum,6) &"
" response.write formatnumber(mynum,6)&"
" mynum=.4567 response.write mynum&"
" '在下面的表达式中后面的0表示是否显示前导0,即是否 为0.4567,如果为0,则不显示 response.write formatnumber(mynum,2,0)&"
" %>