|
Hi im using acess vb to make a simulation. A program is ran when a button is presed, it adds 0.1 to the total and the display is updated based upon this figure.
dim example as single
privatesub examplesub
example = example + 0.1
msgbox example
end sub
However when I run this it and it works fine (mostly) however every howevermany times and then it displays e.g. 26.1666666666666. as an example. Can anyone shed some light upon why this is hapening?
|