For floating-point values, results are inexact : FLOAT : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » FLOAT »

 

For floating-point values, results are inexact


mysql>
mysql> SELECT .1E0 + .2E0 = .3E0;
+--------------------+
.1E0 + .2E0 = .3E0 |
+--------------------+
|                  |
+--------------------+
row in set (0.00 sec)

mysql> SELECT .1 .2 .3;
+--------------+
.1 .2 .3 |
+--------------+
|            |
+--------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» FLOAT