471,078 Members | 771 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,078 software developers and data experts.

help with function - need to round off

120 100+
can someone please tell me how to modify my function to round off to a whole number

Expand|Select|Wrap|Line Numbers
  1. <%
  2. function discount(listedValue)
  3. Discount = 0.9 * listedValue
  4. End function
  5. %>
I've tried this but doesnt work..

Expand|Select|Wrap|Line Numbers
  1. <%
  2. function discount(listedValue)
  3. round(Discount,2) = 0.9 * listedValue
  4. End function
  5. %>
thanks in advance
Omar.
Nov 24 '10 #1
1 1551
omar999
120 100+
UPDATE: never mind I've worked out.

this is my working function
Expand|Select|Wrap|Line Numbers
  1. <%
  2. function discount(listedValue)
  3. Discount = round(0.9 * listedValue)
  4. End function
  5. %>
im a happy bunny

Omar.
Nov 24 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Edward King | last post: by
45 posts views Thread by Joh | last post: by
3 posts views Thread by enfis.the.paladin | last post: by
6 posts views Thread by fdunne2 | last post: by
2 posts views Thread by Jet Leung | last post: by
6 posts views Thread by daveyand | last post: by
12 posts views Thread by ross m. greenberg | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.