hold on there partner. i said c# has a decimal variable type. i did not say that c#'s float and double variable type will work.
i said Visual Basic's float and variable type will work.
so it looks like you don't need to rewrite anything. just change the variables to decimal type and and bada bing bada boom it works!
http://msdn.microsoft.com/en-us/library/364x0z75(VS.80).aspx
i said Visual Basic's float and variable type will work.
so it looks like you don't need to rewrite anything. just change the variables to decimal type and and bada bing bada boom it works!
http://msdn.microsoft.com/en-us/library/364x0z75(VS.80).aspx
Quote from Craig66:
Thanks for all the answers, I think writing a wrapper class which uses integers as the internal representation sounds like the best idea.
To the person who reckons c# doubles and floats just work, they don't, this is a rewrite of a c# project and it had the same problem. That time it was solved with strings, but was looking for a more elegant answer.