|
-
Apr 8th, 2003, 10:41 AM
#1
Thread Starter
Lively Member
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'.
-
Apr 8th, 2003, 10:47 AM
#2
PowerPoster
add .049999 and use the round function to round to 2 places.
-
Apr 8th, 2003, 10:48 AM
#3
Addicted Member
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)
-
Apr 8th, 2003, 10:50 AM
#4
Thread Starter
Lively Member
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'.
-
Apr 8th, 2003, 11:42 AM
#5
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|