Reading file value into variables
Posted on 2002-06-11
I am working on an old bookkeeping program who had to be modified because of the Euro.
I get fault results because some values are not read correctly.
Figures were dimensionned as double and than wroten to the file.
I read a correct 2 decimals file value:
Leverh.Agoed = 7309,34
When I assign it to a variable
Dim dGoederen as Double
dGoederen = Leverh.Agoed
dGoederen has the value: 7309,33984375
Dim cGoederen as Currency
cGoederen = Leverh.Agoed
cGoederen now has a value of 7309,3398
Why those differences?
When I write 7309,34 to the file, I want the same value back when reading!