Ispirer Website Ispirer Capabilities - MySQL Migration Free Trial

MySQL Data Types - FLOAT

Versions: MySQL 5.x, 4.x and 3.23

MySQL - FLOAT
Syntax FLOAT[(p[,s])] [UNSIGNED] [ZEROFILL]
Data Floating-point numeric data
Parameters If only p is specified, p is the binary precision. if p and s are both specified, p is the maximum number of all digits (both sides of the decimal point),
s is the maximum number of digits after the point. p and s are optional

If UNSIGNED is specified, negative values are not allowed. ZEROFILL specifies that the data is right padded with zeros to p
Range -3.402823466E+38 to -1.175494351E-38, 0, and 1.175494351E-38 to 3.402823466E+3
Storage Size 4 bytes if p ⇐ 24, 8 bytes if p > 24
Internals If only p is specified, and p is 25 to 53, FLOAT is converted to DOUBLE
Synonyms FLOAT4
Standards ANSI SQL

MySQL FLOAT - Equivalents in Other Databases

Database Data Type and Conversion
Oracle FLOAT(p)
SQL Server FLOAT(p)
PostgreSQL FLOAT(p)
Sybase ASE FLOAT(p)
Informix FLOAT(p), p is ignored
HP Neoview FLOAT(p)
Ingres FLOAT

Related Data Types in MySQL

Data Types
Integers BIGINT INT MEDIUMINT SMALLINT TINYINT
Fixed-point DECIMAL(p,s) NUMERIC(p,s)
Floating-point REAL(p,s) DOUBLE(p,s)

All Data Types


© 1999-2024, Ispirer Systems, LLC. All Rights Reserved.