Floating point arithmetic, again [Software]

posted by ElMaestro  – Denmark, 2020-12-10 21:38 (404 d 10:27 ago) – Posting: # 22130
Views: 5,078

Hi Ohlbe,


» Mmmm. But then if the problem comes from the nasty 0.1, how comes that if I type =(0.8-0.4-0.2-0.1-0.1) I get a nice 0, without any funky E-17 ? And then if I type =0=(0.8-0.4-0.2-0.1-0.1), or =0=0.8-0.4-0.2-0.1-0.1 I get a nice TRUE ?

Impossible to tell if this is an effect from Excel or from some degree of streamlining within the CPU.
It is fairly trivial (I think) at the CPU level as well as in Excel to check if you are handing objects of the type (x-x) and to substitute those with a zero where they occur.

Pass or fail!
ElMaestro

Complete thread:

Activity
 Admin contact
21,831 posts in 4,567 threads, 1,553 registered users;
online 5 (0 registered, 5 guests [including 3 identified bots]).
Forum time: Wednesday 08:05 CET (Europe/Vienna)

Research under a paradigm must be a particularly effective way
of inducing paradigm change.    Thomas S. Kuhn

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