![]() |
|
"be consistent" | |
PerlMonks |
Puzzled by the bignum pragmaby syphilis (Archbishop) |
on Jan 31, 2025 at 09:57 UTC ( [id://11163894]=perlquestion: print w/replies, xml ) | Need Help?? |
syphilis has asked for the wisdom of the Perl Monks concerning the following question:
Why does bignum assign integer values to Math::BigInt objects ?
Why not assign them to a Math::BigFloat object, same as is done for non-integer values ? By allowing 2 types of objects, bignum opens itself up to issues that (AFAICS) would not arise if all values were assigned to Math::BigFloat objects - eg upgrades/downgrades from one type to another. And I can't see that allowing Math::BigInt objects leads to any benefits. Illuminations are most welcome. Cheers, Rob
Back to
Seekers of Perl Wisdom
|
|