Hi everyone,
I've been working with plant simulation for 3 years now, but during all this time I've never seen such a thing
(see attachement)
I have 2 values (actualcont and bookthis) which when soustracted bring an round up error which I really can not explain. See the example:
actualcont = 0.23568
bookthis = 0.22632
----
actualcont - bookthis = 0.009360000000000035 (instead of 0.00936)
actualcont + bookthis = 0.462
actualcont - bookthis + 0 = 0.009360000000000035
actualcont - bookthis + 1 = 1.00936
actualcont*1000 - bookthis*1000 = 9.360000000000035
--
Can anyone explain me this effect ? The raison of this round up error ? Is their a way to fixe this without using round(actualcont - bookthis,5) ?
Which difference causes my model to crash after a while that's how I found it.
Thank in advance for your explainations and solutions
(Answer in German or English are fine for me)
------------------
Thomas Carlin
Process Engineer
BASF SE
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP