Re: Float numbers equality.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Float numbers equality.
- From: Coda Highland <chighland@...>
- Date: 2013年8月10日 09:04:35 -0700
On Sat, Aug 10, 2013 at 12:48 AM, Enrico Colombini <erix@erix.it> wrote:
> On 10/08/2013 0.47, Coda Highland wrote:
>>
>> Ah, whoops, yeah, you're right, I got sloppy there. Really that ought
>> to be epsilon*math.max(lhs,rhs) even.
>
>
> Do you mean epsilon*math.max(math.abs(lhs),math.abs(rhs)) ?
>
> --
> Enrico
>
No, but you have a good point that it should be math.abs(epsilon*rhs).
/s/ Adam