Unwanted Rounding Errors

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top