datatype-name DECIMALor
datatype-name DECIMAL(8)or
datatype-name DECIMAL(10,4)
MySQL uses roughly 4 bytes for every 9 digits either side of the decimal.
The english definition (http://www.thefreedictionary.com/decimal) would assume that when you specify the DECIMAL datatype you would want to insert numbers with fractions.
This however is not the case. Lets show this:
[Read more...]
mysql> create database decimal_madness;
Query OK, 1 row affected (0.00 sec)
mysql> use decimal_madness;
Database changed
mysql> create table test1 ( tmp