【发布时间】:2014-04-16 14:08:37
【问题描述】:
下午,
我正在尝试编写一个小投标脚本。但是我在使用 formatNumber 函数时遇到了问题。
currentBid = 50.51 'from database dataType double(16,2)
yourBid = isNumeric(Request("bid"))
If FormatNumber(yourBid,2) > FormatNumber(currentBid,2) Then
Response.Write"bid successful... woop woop"
else
Response.Write"you cant bid below the current asking price"
end if
但如果我要出价 1000 是写“你不能低于当前要价出价”
请指教
问候
谢恩
'Changed as advised
currentBid = 50.51 'value from database
If IsNumeric(Request.Form("bid")) Then
yourBid = CDbl(Request.Form("bid"))
end if
【问题讨论】:
标签: vbscript asp-classic