|
<%@ LANGUAGE = "VBScript" ENABLESESSIONSTATE = False %> <% 'Here we request the numeric percentages(%) of 'discount, ie: 2, 5, 10, 20, etc.: percent_discount = "10" 'For multiplication, let's see if we need to 'add a zero after the decimal: If Len(percent_discount) > 1 Then pd = "."&percent_discount&"" Else pd = ".0"&percent_discount&"" %> <html> <body> <% normal_cost = "50" discounted_cost = normal_cost - (normal_cost * pd) %> Normal Cost: <%=FormatCurrency(normal_cost)%><br> Discounted Cost: <%=FormatCurrency(discounted_cost)%> </body> </html> |
录入时间:2006-06-04 18:58:16 [打印本页]
[关闭窗口]
[返回顶部] |
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。 |
|
|