XP is just a number | |
PerlMonks |
Re: to calculate the value of πby fisher (Priest) |
on Sep 04, 2013 at 13:31 UTC ( [id://1052342]=note: print w/replies, xml ) | Need Help?? |
in addition to previous comment I have to point out that you can't just use a usual division operator (4-4/3 ...) cause then you will found yourself restrained into IEEE 754 boundary (fixed mantissa length).
you need to implement your own tricky iterative algorithm using pure integer arithmetics. Good luck!
In Section
Seekers of Perl Wisdom
|
|