Changes between Initial Version and Version 1 of Ticket #5831, comment 3


Ignore:
Timestamp:
2020-02-06T23:16:36Z (5 years ago)
Author:
Karim Adbdelhak

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5831, comment 3

    initial v1  
    88> the assertion is never triggered.
    99
    10 Yep, there actually is no equality check for `Real` numbers. The operator `>=` directly translates to `>` on `Real` numbers and should only be used for `Integer` or at least `discrete` variables.
     10Yep, there actually is no true equality check for `Real` numbers. The operator `>=` directly translates to `>` on `Real` numbers and should only be used for `Integer` or at least `discrete` variables.
    1111
    1212If you really want to have an equality check use `Modelica.Math.isEqual` from the MSL, but you need to use an epsilon different to zero for it to properly work. There are some fringe cases where it also works with an epsilon of zero but i would not rely on that.