Rounding [Software]
Dear Helmut,
Based on ICE 60559's rounding off a '5' standard (go to the even digit), "R 2.15.2: round(125.005, 2) ⇒ 125.00" is correct. Zero is considered as an even digit.
❝ How does your software round? Mine:
❝ Excel 2000: round(125.005, 2) → 125.01
❝ OO Calc: round(125.005, 2) → 125.01
❝ Gnumeric 1.10.16: round(125.005, 2) → 125.01
❝ WinNonlin 5.3: round(125.005, 2) → 125.01
❝ Phoenix 6.3: round(125.005, 2) → 125.01
❝ JavaScript: Math.round(125.005*100)/100 → 125.01
❝ PHP: round(125.005, 2) → 125.01
❝ R 2.15.2: round(125.005, 2) → 125.00
Based on ICE 60559's rounding off a '5' standard (go to the even digit), "R 2.15.2: round(125.005, 2) ⇒ 125.00" is correct. Zero is considered as an even digit.
—
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
- Roundingyjlee168 2013-01-05 23:15
- Rounding d_labes 2013-01-02 12:51