Public bug reported:

I noticed that gawk floating number calculator function (mpfr_atan2)
prints wrong numbers after 15th decimal.

The following gawk command prints pi:

`awk 'BEGIN {  x = 1;  y = 1;  result = 4*atan2 (y,x);  printf " %.20f
degrees\n", result}'`

`3.14159265358979311600 degrees`

But it must be `3.14159265358979323846`

** Affects: gawk (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1805003

Title:
  precision for floating number fails after 15th decimal

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gawk/+bug/1805003/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to