View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Anson[_2_] Anson[_2_] is offline
external usenet poster
 
Posts: 28
Default Unwanted Rounding Errors

I set a variable as "single" and gather the value from in cell in Excel, say a percentage. When I spit out the same variable back to the worksheet, I got a slightly different number. For example 12% will become 0.1200000000542. Obviously this causes problem when I do data vailadion since these two numbers are now not equal. I don't want to round a number everytime when I deal with a number, any suggestion?