Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^9: Reliably parsing an integer

by syphilis (Archbishop)
on Jun 30, 2020 at 13:08 UTC ( [id://11118716]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    C:\>perl -MDevel::Peek -le "$x = 1e6; Dump $x;"
    SV = NV(0x488470) at 0x488488
      REFCNT = 1
      FLAGS = (NOK,pNOK)
      NV = 1000000
    
  2. or download this
    C:\>perl -MDevel::Peek -le "$x = 1e6 * 1.0; Dump $x;"
    SV = IV(0x4ecb10) at 0x4ecb20
      REFCNT = 1
      FLAGS = (IOK,pIOK)
      IV = 1000000
    
  3. or download this
    C:\>perl -MDevel::Peek -le "$x = '1e6' * 1.0; Dump $x;"
    SV = IV(0x33d010) at 0x33d020
      REFCNT = 1
      FLAGS = (IOK,pIOK)
      IV = 1000000
    
  4. or download this
    C:\>perl -MDevel::Peek -le "$x = '1e70' * 1.0; Dump $x;"
    SV = NV(0x576440) at 0x576458
      REFCNT = 1
      FLAGS = (NOK,pNOK)
      NV = 1e+70
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11118716]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-18 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found