Math::BigInt with INN
Russ Allbery
rra at stanford.edu
Mon Jun 29 00:01:56 UTC 2009
Julien ÉLIE <julien at trigofacile.com> writes:
> Could we use Math::BigInt instead?
Yeah, that looks like the right move.
> Note that I see afterwards:
>
> my($len) = bhex($lena);
> my($free) = bhex($freea);
> print " Buffer $name, len: ";
> printf("%.2f", $len / (1024 * 1024));
> print " Mbytes, used: ";
> printf("%.2f Mbytes", $free / (1024 * 1024));
>
> There was no bdiv() here to compute it. No need to? (string division)
> It properly gives a right answer, though:
Since it's going to a floating point number, I suspect we don't care
that it retains all the integer precision. Plus, we want to get a
floating point result back for printf.
--
Russ Allbery (rra at stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list