PHP Basic: Integer Data TypeTag: data type, integer Category: PHP Basicpost: 01 Mar 2008 read: 147 PHP Basic Data Type Step By Step Tutorial - Part 3: Integer data type is a data type that is expressing Integer. The integer reach depends on platform, it is about 2 billion. Integer can be expressed for the notation of decimal number (bases 10), hexadecimal (bases 16), and octal (bases 8). The using of octal notation must have early by 0, while the using hexadecimal notation must have early by 0x If you express a value exceed integer number reach, automatically the value will be considered to be the float data type. If you do an operation yielding an value beyond reach integer data type, hence data type of float will become its substitution. Pay attention to the example of using integer data type at script as following: (File name: Integer.php)
The result of executing integer.php
|
| | Give Your Opinion | Recommend |
|

