Real number treated as Integers?

Well first of all you have to remember that an integer value and even real type
values must be numeric only.

While changing a decimal to a comma will the the format but does nothing for
the integer relation.

here's my suggestion, it is two parts:

var TotalExample: nnnnnn

(nnnn = Integer, LongInt, ShortInt, Double etc...whatever you want... but
probably Double)

TotalExample := FormatFloat('000000', DBEdit1.Text);

(perform your calculations)

Then DBEdit1.Text := FomatFloat('0,00',TotalExample);

this works for me.

 But there may be an easier example, if so I 'm not sure what.

Hope this helps