|Don't ask to ask, just ask|
Infinity and Inf?by LanX (Bishop)
|on Aug 31, 2010 at 17:29 UTC||Need Help??|
LanX has asked for the
wisdom of the Perl Monks concerning the following question:
could someone point me to a good source where and how the constants Inf and Infinity can be used in Perl?
I tried to define a lazy iteration and I know that I can redefine the constant for my needs
But I would be interested to know the canonical/intended way to use those constants, before messing around with internals!
Unfortunately grepping thru the perlocs didn't show much information.
It seems to be a feature of Math::BigInt but why can I see the constant without using BigInt???
There are also confusing references to a IEEE 754 standard. In JS a division by zero results to Infinity, but in Perl it's an error?
Please enlighten me about what is happening here...