Re: Problem comparing double values
- From: "Bob Butler" <tiredofit@xxxxxxxxxx>
- Date: Wed, 6 Jul 2005 07:05:35 -0700
"Rick Rothstein" <rickNOSPAMnews@xxxxxxxxxxxxxxxxx> wrote in message
news:%23JiSoBjgFHA.1948@xxxxxxxxxxxxxxxxxxxx
> Yes, you could you this approach also. Actually, I like this approach
> better than the epsilon test even if it will probably be ever so
> slightly slower... two function calls instead of one(?). However, I
> wouldn't use the Round function as can produce transitivity problems
> of its own due to its use of Banker's Rounding. Consider this....
>
> Print Round(11.111115, 5), Round(11.111125, 5), Round(11.111135, 5)
>
> Use the Format function instead as that will produce the "correct"
> type of rounding.
If speed is of concern then converting to and from String like that is not
the best idea, especially when wrapping them up in Variants
--
Reply to the group so all can participate
VB.Net: "Fool me once..."
.
- References:
- Problem comparing double values
- From: Chris Eden
- Re: Problem comparing double values
- From: Rick Rothstein
- Re: Problem comparing double values
- From: Pásztor, Zoltán
- Re: Problem comparing double values
- From: Rick Rothstein
- Problem comparing double values
- Prev by Date: Re: How can I programmatically reset an Autonumber field in an Access table?
- Next by Date: Re: Flat File Processing
- Previous by thread: Re: Problem comparing double values
- Next by thread: Re: Problem comparing double values
- Index(es):
Relevant Pages
|