Rounding [Software]

posted by yjlee168 Homepage – Kaohsiung, Taiwan, 2013-01-06 00:15 (4556 d 14:26 ago) – Posting: # 9790
Views: 13,082

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.2:- 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,424 posts in 4,927 threads, 1,687 registered users;
45 visitors (0 registered, 45 guests [including 7 identified bots]).
Forum time: 15:41 CEST (Europe/Vienna)

Complex, statistically improbable things are by their nature
more difficult to explain than
simple, statistically probable things.    Richard Dawkins

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