DECIMAL, FLOAT & DOUBLE
Learn DECIMAL, FLOAT & DOUBLE (Data Types, MySQL) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Introduction DECIMAL(p,s) is exact fixed-point (p total digits, s after the point) for money. FLOAT (4 bytes) and DOUBLE (8 bytes) are approximate binary floating point for scientific data.