Abandon rounding [Software]

posted by Helmut Homepage – Vienna, Austria, 2013-01-02 18:04 (4924 d 19:13 ago) – Posting: # 9779
Views: 15,518

Hi ElMaestro,

❝ Perhaps a little oddly, but in the C standard C will round down for integers


I see. Another hint that C is a child of Fortran (also rounding down).

❝ […] This is done e.g. by comparison with a true double precision figure like 80.00 rather than 80.


Yep. In my future sim’s I will abandon rounding at all. Edit: See above. In my sim’s I used the ratios (not percentages) rounded to 4 decimals.
round(x.xxxxx,4) works – the problem comes with round(xxx.xxx,2).

Dif-tor heh smusma 🖖🏼 Довге життя Україна! [image]
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

UA Flag
Activity
 Admin contact
23,655 posts in 4,993 threads, 1,572 registered users;
343 visitors (0 registered, 343 guests [including 14 identified bots]).
Forum time: 14:17 CEST (Europe/Vienna)

The real struggle is not between the right and the left
but between the party of the thoughtful
and the party of the jerks.    Jimmy Wales

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