|
-
October 25th, 2005, 09:59 AM
#7
Re: Rounding a Value
It is not buggy. It is a method of rounding known as "bankers rounding". Why I wouldn't have the first clue.
Believe it or not, it does have its uses. Most noticably it can be implemented to be very quick.
You can wriet your own function but they are often very slow in comparison, which is usually fine for VB (since, if speed was an issue, you wouldn't use VB).
Often "accurate" rounding is not AS necessary as one might think. It will often surfice to simply use bankers rounding or return only the integer part. But it does depend on your requirements.
Mike
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
|