Rounding [Software]

posted by yjlee168 Homepage – Kaohsiung, Taiwan, 2013-01-06 00:15 (4906 d 10:11 ago) – Posting: # 9790
Views: 15,155

Dear Helmut,

❝ 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.6:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here

Complete thread:

UA Flag
Activity
 Admin contact
23,653 posts in 4,991 threads, 1,570 registered users;
105 visitors (0 registered, 105 guests [including 25 identified bots]).
Forum time: 11:26 CEST (Europe/Vienna)

To propose that poor design can be corrected by subtle analysis techniques
is contrary to good scientific thinking.    Stuart J. Pocock

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5