Consultor Eletrônico



Kbase P43194: ROUND function is returning the wrong result
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   19/09/2003
Status: Unverified

SYMPTOM(s):

ROUND function is returning the wrong result

Round(4.449999999,1) returns 4.4 when 4.5 is expected

CAUSE:

The ROUND function does not evaluate the whole number, only the precision + 1 after the decimal point.

FIX:

This is the expected behaviour

Examples:
Round(value, precision)
Round(4.449999999,1) - only 4.44 is evaluated giving the result of 4.4
Round(4.449999999,2) - only 4.449 is evaluated giving the result of 4.45