in reply to Re: Strange Logic in Power of arithmetic
in thread Strange Logic in Power of arithmetic

Wow, nice variety of different results.... My version was:
This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x +86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2012, Larry Wall Binary build 1604 [298023] provided by ActiveState http://www.ActiveSt +ate.com Built Apr 14 2014 14:32:20
on
Vista Home Premium, Service Pack 2, 32 bit architecture.
It seems to indicate there is some kind of glitch with my implementation. Maybe it's time to upgrade. Thanks for your inputs.

Replies are listed 'Best First'.
Re^3: Strange Logic in Power of arithmetic
by syphilis (Archbishop) on Jan 27, 2016 at 13:00 UTC
    Wow, nice variety of different results

    Note that -1.#IND, nan, -nan and NaN are just different ways of denoting the same value - namely "not a number".

    Cheers,
    Rob