On Wednesday, March 9, 2022 at 12:37:10 PM UTC+1 christoph...@gmail.com
wrote:
> This value is converted to float64/double, and divided by 2^64.
> The resulting number is multiplied by 1e8.
>
> Could it be that the C program is performing the computation with long
> double (80 bit) precision an
You will need to provide the C compiler used and the flags. See
https://stackoverflow.com/questions/38815823/compiler-flags-for-enhancing-the-precision-of-intermediate-floating-point-calcul
> On Mar 9, 2022, at 6:46 AM, Sean Liao wrote:
>
> It would help if your could show the actual code for
A simple C and Go program to demonstrate the problem doesn't show any
difference between C and Go.
It's thus most probably a difference in the code that I must investigate.
Sorry for the noise.
Le mercredi 9 mars 2022 à 12:37:10 UTC+1, christoph...@gmail.com a écrit :
> I'm translating a sci
It would help if your could show the actual code for both C and Go, as well
as the input
On Wednesday, March 9, 2022 at 11:37:10 AM UTC christoph...@gmail.com wrote:
> I'm translating a scientific C program into Go that is doing some 64bit
> floating point operations.
>
> In this process I che