|Subject:||bsqrt() precision and rounding|
|Date:||Sat, 08 Oct 2011 11:40:13 +1100|
|To:||bug-Math-BigRat [...] rt.cpan.org|
|From:||Kevin Ryde <user42 [...] zip.com.au>|
The docs of BigRat bsqrt() could say how much accuracy it gives and which way it rounds. Does it end up a hard limit of 40 digits of some such (a default from BigFloat maybe)? If the input is a perfect square it'd be good to give back the exact root. Not sure what to do otherwise, though perhaps rounding downwards, to whatever precision denominator, would be consistent with BigInt.