I am trying to add two numbers using Hive SQL.
select 4.6 + 3.1 from <table> => 7.699999999999999
But,
select 4.7 +3.2 from <table> => 7.9
I understand that rounding of result will give the expected output but the question is why this different behavior in first place?
I am using hive 2.11 (hive context) with Apache spark 1.6.2.