The stupid question is the question not asked | |
PerlMonks |
Re^10: NaN outputby BrowserUk (Patriarch) |
on Mar 06, 2014 at 13:53 UTC ( [id://1077232]=note: print w/replies, xml ) | Need Help?? |
you could start with a couple of IV's and generate a NaN. The problem (for me) is that there are no IVs involved in your construction. The basic compile-time constant: 2**1025 never results in the construction of any IVs. The interpreter constructs a compile-time constant from the expression and stores it as an NV:
And then at runtime, one NV (value 1.#INF) is divided by another NV (also 1.#INF) and the results is an NV (value: -1.#IND):
No IVs were ever involved because the textual integer expression from the source code never made into the byte-coded Perl. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|