By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,659 Members | 1,714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,659 IT Pros & Developers. It's quick & easy.

help with function - need to round off

100+
P: 120
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
Share this Question
Share on Google+
1 Reply


100+
P: 120
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.