You are right there - have been programming so long in Delphi using their Currency type that I forgot that doubles (and floats) can be a bit inaccurate, I changed the function parameter and return value to floats and i get a correct result.
I will have a look at these.. really need something similar to the pascal currency type...





Try changing the datatype (for instance to float).
Reply With Quote
Bookmarks