-
Book Overview & Buying
-
Table Of Contents
Building a Web Application with PHP and MariaDB: A Reference Guide
By :
Let us now look at the following main number datatypes:
|
Datatype |
Explanation |
Comments |
|---|---|---|
|
|
This stores integer values. |
-128 to 127, Signed 0 to 255, Unsigned |
|
|
This stores integer values. |
-32768 to 32767, Signed 0 to 65535, Unsigned |
|
|
This stores integer values. |
-8388608 to 8388607, Signed 0 – 16777215, Unsigned |
|
|
This stores integer values and takes the size of the number. |
-2147483648 to 2147483647, Signed 0 – 4294967295, Unsigned |
|
|
This stores integer values. |
-9223372036854775808 to 9223372036854775807, Signed 0 to 18446744073709551615, Unsigned |
|
|
This stores floating point numbers and allows us to define the display length (l) and the number of digits after the decimal point (d). The default values for l, d are 10 and 2, respectively. |
This uses 4-byte single precision and can display from 0 to 23 digits after the decimal. |
|
|
This is similar to |
The |
|
|
This stores the exact numeric data values and allows us to define the display length (l) and the number of digits after decimal point (d). |
This is used for precision mathematics that deals with extremely accurate results. The |
Change the font size
Change margin width
Change background colour