in reply to Non-integer print output???
(Maybe the question you should ask is "Why does the ** operator always return an NV ?". I don't know.)C:\>perl -MDevel::Peek -le "$x = 2 ** 3; Dump $x;" SV = NV(0x47cd88) at 0x47cda0 REFCNT = 1 FLAGS = (NOK,pNOK) NV = 8 C:\>perl -MDevel::Peek -le "$x = 2 ** 49; Dump $x;" SV = NV(0x33d148) at 0x33d160 REFCNT = 1 FLAGS = (NOK,pNOK) NV = 562949953421312 C:\>perl -MDevel::Peek -le "$x = 2 ** 50; Dump $x;" SV = NV(0x47cd38) at 0x47cd50 REFCNT = 1 FLAGS = (NOK,pNOK) NV = 1.12589990684262e+15
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Non-integer print output???
by LanX (Saint) on Sep 10, 2021 at 09:12 UTC | |
by syphilis (Archbishop) on Sep 10, 2021 at 14:33 UTC | |
by bliako (Abbot) on Sep 10, 2021 at 17:18 UTC | |
by LanX (Saint) on Sep 10, 2021 at 15:45 UTC | |
|
Re^2: Non-integer print output???
by jwkrahn (Abbot) on Sep 10, 2021 at 01:19 UTC |