Rounding [Software]
Dear Helmut,
- Firstly, I like to thank you for giving me the chance to look at rounding issue, although I don't think that I am a mathematician to deal with such a tough question. For me, rounding rule is just like a guideline to follow with. I will not take it as scientific issue, but just a rule or a standard. Otherwise, why do people make such a standard (IEC 60559)? Just like BE criteria is set as 90%CI of 80.00% ~ 120.00%. Fortunately, after discussion I find that the rounding rule I use is the same as IEC 60559 standard. So I will put IEC 60559 standard into my SOP of data analysis later.
- So far, I don't think that R completely complies IEC 60559 standard in its rounding function (as your demonstration) under Windows (my computer OS). In R online help, it says that the rounding function may vary with different computer OS. Fortunately, in your case (round(125.005, digits=2), it complies.
- I agree with that rounding will loose information. But sometimes it may also introduce bias too. Arbitrarily, we call it 'rounding error.' Because it can be difficult to estimate the rounding error, so we live with it. It will not introduce bias only when we take the final number to round off and present it. If this is the case, we don't have to worry about the bias.
- Finally, I absolutely agree with you that sometimes R drives me nuts too.
—
All the best,
-- Yung-jin Lee
bear v2.9.2:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
All the best,
-- Yung-jin Lee
bear v2.9.2:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
Complete thread:
- Rounding Helmut 2013-01-01 16:51 [Software]
- Rounding d_labes 2013-01-02 12:51
- Rounding Helmut 2013-01-04 17:35
- Rounding d_labes 2013-01-05 19:25
- Rounding Helmut 2013-01-05 20:13
- Sim’s are sim’s are sim’s d_labes 2013-01-05 20:57
- Another vicious circle Helmut 2013-01-06 02:21
- Where all these numbers came from? d_labes 2013-01-07 15:52
- Flaw in the GL? Helmut 2013-01-07 17:29
- Flaw in the GL? d_labes 2013-01-08 11:44
- What a mess! Helmut 2013-01-08 19:08
- What a mess! d_labes 2013-01-09 10:33
- What a mess! Helmut 2013-01-09 15:18
- What a mess! d_labes 2013-01-09 10:33
- What a mess! Helmut 2013-01-08 19:08
- Flaw in the GL? d_labes 2013-01-08 11:44
- Flaw in the GL? Helmut 2013-01-07 17:29
- Where all these numbers came from? d_labes 2013-01-07 15:52
- Rounding Helmut 2013-01-05 20:13
- Rounding d_labes 2013-01-05 19:25
- Rounding Helmut 2013-01-04 17:35
- Rounding ElMaestro 2013-01-02 16:12
- Abandon rounding Helmut 2013-01-02 17:04
- Rounding yjlee168 2013-01-05 23:15
- Rounding d_labes 2013-01-02 12:51