0
Buranda Posted 16 years ago
Grammar

Meaning of the sentence

Hi,

I am currently reading computer programming books and it says:

"If we store 0.1 in a float variable, we may later find that the variable has a value such as 0.09999999999999987, thanks to rounding error."

FIrstly, I know the meaning of each stentence above, but I just dont' get any idea of how the last two highlighted expresstions are related to each other. I mean, from the sentence, I will get to know the actual value of the variable is going to be 0.09999999999987 but I don't know why I need to thank to rounding error. "thanks to rounding error" part is just not clear to me. What is the expression "thanks to rounding error" trying to say?

Thanks.
  

Top answer

"thanks to rounding error" means "this kind of error is caused by rounding". thanks here is not to thank someone ,it's just an expression stands for "because of". and also you can blame it.

  • "thanks to rounding error" means "this kind of error is caused by rounding".
  • thanks here is not to thank someone ,it's just an expression stands for "because of".
  • and also you can blame it.
  • Am I right?
Free · every Monday

Get the Weekly English Kit 📬

New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.

1 Answers
0
"thanks to rounding error" means "this kind of error is caused by rounding".

thanks here is not to thank someone ,it's just an expression stands for "because of".

and also you can blame it.

Am I right?

Related Questions