FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Implied cast differs from explicit cast
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Implied cast differs from explicit cast [message #176659 is a reply to message #176658] Mon, 16 January 2012 03:08 Go to previous messageGo to previous message
lb is currently offline  lb
Messages: 4
Registered: January 2012
Karma:
Junior Member
jstucklex(at)attglobal(dot)net wrote:
> ...
> No, it is not. '0x12' is a hex number, not an integer. (int)'0x12'
> converts this correctly to 0.

OK, but if (int)'0x12' is 0, why is '0x12'+0 == 18?

Why are they different? Aren't they both doing 'string conversion to number'?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Open Source Development
Next Topic: error from phpadmin
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 14:59:07 GMT 2024

Total time taken to generate the page: 0.04633 seconds