Can someone explain why in SQL Server / T-SQL, this query
SELECT CAST(0.26 AS REAL)
returns
0,25999999046325684
and this query
SELECT CAST(0.27 AS REAL)
returns
0,27000001072883606
but this one
SELECT CAST(0.25 AS REAL)
returns 0,25
When I use datatype MONEY
instead of REAL
or FLOAT
, everything is fine, but I want to learn why this happens...