PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 2024 → wd8 :  Rounding problems with "SUM" checked in table
wd8 : Rounding problems with "SUM" checked in table
Iniciado por christine, jan., 24 2006 2:04 PM - Sem resposta
Publicado em janeiro, 24 2006 - 2:04 PM
In a table i have a column "Total" which is declared currency with 2 decimals "999.999,99)
I check the "SUM" icon to make a sum at the end. The SUM FIELD is also currency with 2 decimals as above.
He displays as sum = 48.64 While it has to be 18.63
As i calculate the fields by hand myself as displayed 30.37 + 18.26 H.63
when Windev SUM makes the calculation 30.3720 + 18.2640 = 48.6360 (field mask : 2 decimals = 48.64)
What do i do wrong : when the clients counts manually the displayed (2digits) values is is 0.01 Difference.