Hi I am having a problem on a rounding function.
When I assign a double to a long sometimes it changes the number
so for example
double d = 23.00
l = d;
and then when I print l it is 22.
Any ideas? I can post more of the code, I mean that the double number isn't just initialised and assigned and maybe what happens to it before affects what is happening?