Re: Strange Numeric Conversion...
| From: | Curt Zirzow | Date: | Fri, 02 Apr 2004 23:18:53 +0000 |
| Subject: | Re: Strange Numeric Conversion... | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182212@lists.php.net to get a copy of this message | ||
* Thus wrote Daniel Clark (dclark@nwlink.com):
> Found this:
>
> $a = 1234; # decimal number
> $a = -123; # a negative number
> $a = 0123; # octal number (equivalent to 83 decimal)
> $a = 0x1A; # hexadecimal number (equivalent to 26 decimal)
$a is integer in all these cases, the only difference is the last
two are set using different base notation.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."