Changes between Initial Version and Version 1 of Ticket #5831, comment 3
- Timestamp:
- 2020-02-06T23:16:36Z (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5831, comment 3
initial v1 8 8 > the assertion is never triggered. 9 9 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.10 Yep, 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. 11 11 12 12 If 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.