Difference in Floating operation
Hi,
please find below..
mysql> select round((30 +(30*0.2755)),2) as Amount;
+--------+
| Amount |
+--------+
| 38.27 |
+--------+
1 row in set (0.00 sec)
mysql> select round(('30' +('30'*0.2755)),2) as Amount;
+--------+
| Amount |
+--------+
| 38.26 |
+--------+
1 row in set (0.00 sec)
Why i am getting 0.01 difference in above floating operation.
Subject
Written By
Posted
Difference in Floating operation
January 05, 2014 11:21PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.