[Mono-devel-list] Re: [PATCH] Various DateTime fixes and tests

Atsushi Eno atsushi at ximian.com
Thu Jun 10 04:49:21 EDT 2004


Hello,

> The problem is that IEEE floating point numbers are evil. :)  As a 
> double, the -657434.999 argument is actually -657434.998999999952502... 
>  Using bc, since it's arbitrary precision, we can tell what the error 
> would be just on the fractional part (of an hour) given to FromOADate 
> alone:

Yeah, I think you're right. I thought that "implementation by double"
might not be always a good idea. How do you think if it is reimplemented
using decimal? (sorry, am not spending my time to implement in my box
before just asking. It's value idea without examining in depth)

Thanks!
Atsushi Eno



More information about the Mono-devel-list mailing list