Results 1 to 3 of 3

Thread: [RESOLVED] How to ROUND-OFF Value

  1. #1

    Thread Starter
    Lively Member nancy_padillon's Avatar
    Join Date
    Mar 2007
    Posts
    70

    Resolved [RESOLVED] How to ROUND-OFF Value

    Hello guys,

    How do you round-off a value with 2 decimals places only?

    I have already format the textbox for this data type but it still displays 10 decimal places...please help?
    Last edited by Hack; Apr 19th, 2007 at 05:41 AM. Reason: Added RESOLVED to thread title and green resolved checkmark

  2. #2
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    Re: How to ROUND-OFF Value

    Code:
    1. yourvalue = Round(yourvalue, 2)
    2. or
    3. yourvalue = Format(yourvalue, "0.00")

  3. #3

    Thread Starter
    Lively Member nancy_padillon's Avatar
    Join Date
    Mar 2007
    Posts
    70

    Re: How to ROUND-OFF Value

    thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width