Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Why are hex numbers inside strings extrapolating to numbers (incorrectly)?

by mr.nick (Chaplain)
on Feb 26, 2001 at 20:55 UTC ( [id://60890]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "0x1" + 0 = 1
    print "0x2" + 0 = 1
    ...
    print "0x8" + 0 = 1
    print "0x9" + 0 = 1.125
    print "0x10" + 0 = 1
    
  2. or download this
    print "0x1" + 0 = 1          1/1     = 1
    print "0x2" + 0 = 1          2/1     = 2
    ...
    print "0x8" + 0 = 1          8/1     = 8
    print "0x9" + 0 = 1.125      9/1.125 = 8
    print "0x10" + 0 = 1         10/1    = 10
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-03-29 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found