0

Executing the following:

SELECT ROUND(0.825,2) 

RETURNS 0.830

Executing the following:

SELECT ROUND(CAST(0.825 AS FLOAT),2) 

RETURNS 0.82

How is this behavior explained and how can be overcomed when I want to round a float field to 2 decimals?

Dale K
  • 25,246
  • 15
  • 42
  • 71
rpd
  • 462
  • 1
  • 9
  • 24

0 Answers0