Skip Menu |

This queue is for tickets about the Math-BigRat CPAN distribution.

Report information
The Basics
Id: 71540
Status: new
Priority: 0/
Queue: Math-BigRat

Owner: Nobody in particular
Requestors: user42 [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: bsqrt() precision and rounding
Date: Sat, 08 Oct 2011 11:40:13 +1100
To: bug-Math-BigRat [...]
From: Kevin Ryde <user42 [...]>
Download (untitled) / with headers
text/plain 388b
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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to