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 #176717 is a reply to message #176707] Thu, 19 January 2012 15:01 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Arno Welzel wrote:
> Jerry Stuckle, 2012-01-17 14:16:
>
>> On 1/17/2012 12:59 AM, Arno Welzel wrote:
>>> Jerry Stuckle, 2012-01-16 14:45:
>>>
>>>> On 1/16/2012 8:28 AM, The Natural Philosopher wrote:
>>>> > lb wrote:
>>>> >> 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.
>>>> > Looks like Jerry doesn't know what an integer is either.
>>>> >
>>>> > A hex number of course *is* an integer, unless its a hex representation
>>>> > of floating point.
>>>> >
>>>> > Killfile the prat like I have.
>>>> >
>>>> >
>>>> 0x12 is not an integer. It is a hexadecimal value.
>>> No, 0x12 (and *not* "0x12") is the hexadecimal *representation* of the
>>> value 18. There is no thing like "hexadecimal value" and "0x12" is a
>>> *string* and not a number at all.
>>>
>> No, it is a hexadecimal value. It may be an integer, it may be a
>> character, it may be a set of flags... It does not have to be an integer.
>>
>>> In fact PHP only knows to types of numbers: integers and floating point.
>>> There is no "hexadecimal" data type.
>>>
>> Excuse me - there is. See hexdec().
>
> <http://php.net/manual/en/function.hexdec.php>
>
> You don't know what a data type is? Do you?
>

No, it's Jerrykins.

You expect too much.......

> See <http://www.php.net/manual/en/language.types.php> and show me, where
> the "hexadecimal data type" is explained.
>

........Including the ability to say 'er yes, I was wrong' with grace, or
at all.


> m(
>
>
[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 24 20:04:47 GMT 2024

Total time taken to generate the page: 0.03987 seconds