"pi" doesn't return a result to the number of places desired
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cln (Debian) |
Fix Released
|
Unknown
|
|||
cln (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: pi
I'm running Feisty current to the repositories. I installed the package "pi" and according to its man page:
---
SYNOPSIS
pi [digits]
DESCRIPTION
The pi command prints 100 decimal digits of Archimedes’ constant pi or
a number of digits specified by an integer parameter on the command
line.
---
However, it doesn't quite seem to get the number of digits right.
If I type "pi" it returns:
3.1415926535897
which is NOT 100 digits, nor to 100 decimal places:
3.
1415926535
8979323846
2643383279
5028841971
6939937510
5820974944
5923078164
0628620899
8628034825
3421170679
82148
so to 105 decimal places or a total of 106 digits.
If you use the option of supplying the number, it gets even weirder:
"pi 1" to "pi 3" returns:
3.1416
"pi 4" to "pi 5" returns:
3.1415927
"pi 6" to "pi 14" returns:
3.141592653589793
etc.
Changed in cln: | |
status: | Unknown → New |
Changed in cln: | |
status: | New → Fix Released |
Ooo! And I just noticed, by the example I gave, that the naughty thing rounds the last digit too! That should definitely be mentioned in the manual OR fixed so that it doesn't do that.