[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pos-pi or neg-pi ??
From: |
arnold |
Subject: |
Re: pos-pi or neg-pi ?? |
Date: |
Thu, 28 Apr 2022 01:27:40 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
arnold@skeeve.com wrote:
> Tom,
>
> You are correct that atan2() itself does not have a problem.
>
> The bug boils down to a problem applying unary minus to an uninitialized
> variable:
>
> $ ./gawk 'BEGIN { printf("%f\n", -a) }'
> -0.000000
>
> $ ./gawk -M 'BEGIN { printf("%f\n", -a) }'
> 0.000000
>
> I am continuing to work on this.
>
> Arnold
Hi Tom.
The fix is attached.
Arnold
negzerofix.diff
Description: Text document