Re: use bigmnum



"Sisyphus" <sisyphus1@xxxxxxxxxxxxxxxxx> writes:

However, it also looks like there's a bug in Math::BigInt.

For me $div (without the int call) is being evaluated as:
200892291601145169018323731364455309894800000000000000000000000000000000....

This appears to be the default 40 digits we get from
Math::BigFloat->div_scale.

It should be:
200892291601145169018323731364455309894845164358819087640439296270563411....

I get this when I use the bigint pragma, rather than bignum.

And % works for me too...with either bignum or bigint.

Tim
.



Relevant Pages

  • Re: use bigmnum?
    ... use bignum; ... as int appears to be overloaded. ... But if $div == NaN, ... I don't imagine upgrading myself to 5.8.8 overnight. ...
    (comp.lang.perl.modules)
  • Re: use bigmnum?
    ... gamo wrote: ... use bignum; ... as int appears to be overloaded. ... But if $div == NaN, ...
    (comp.lang.perl.modules)
  • Re: use bigmnum?
    ... use bignum; ... # This gives NaN for $div when I do it. ... as int appears to be overloaded. ...
    (comp.lang.perl.modules)
  • Re: use bigmnum
    ... use bignum; ... I think that what you wanted to achieve using int() should already be done ... namely that $div then evaluates as 'NaN'. ... You should file a bug report about this - or at least let the current ...
    (comp.lang.perl.modules)
  • problem with port pdumpfs
    ... unchanged /data/intebignum too big to convert into `int' ... bignum too big to convert into `int' ... Anyway I know nothing about Ruby - what should i be looking for in the ...
    (freebsd-questions)