Results 1 to 5 of 5

Thread: Rounding up...

  1. #1

    Thread Starter
    Lively Member Joffies's Avatar
    Join Date
    Aug 2002
    Location
    London
    Posts
    119

    Rounding up...

    Hi all.

    I would like to round a figure in the following way! Say i have values like $ 1.444 and $1.351 i would like to always round the up the third decimal no matter what! How could i achieve this?

    Many thanks.
    Do, or do not. There is no 'try'.

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    add .049999 and use the round function to round to 2 places.

  3. #3
    Addicted Member
    Join Date
    Mar 2003
    Location
    Minneapolis, MN
    Posts
    151
    You could use something like:

    dblResults = Round(dlbSource + .005, 2)

    That would result in:

    1.45 = Round(1.444 + .005, 2)
    1.36 = Round(1.351 + .005, 2)

    but:

    1.44 = Round(1.440 + .005, 2)

  4. #4

    Thread Starter
    Lively Member Joffies's Avatar
    Join Date
    Aug 2002
    Location
    London
    Posts
    119

    ok...but....

    Hello again

    Is there an easy way to always check how much should be added before i round it mathemetically or is there perhaps another function to use in this case ?

    Please advise
    Last edited by Joffies; Apr 8th, 2003 at 11:05 AM.
    Do, or do not. There is no 'try'.

  5. #5
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    both rlwhealdon and I have told you exactly the same thing. Why don't you just try it. you'll see that it works, then you won't have to keep asking quesitons.

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