valueIsNotPositiveInfinite
Short summary
This assertion method checks if the current value is not positive infinite NOT (infinity), for details check IEEE 754
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| currentValue | LREAL | current value to check | input |
| message | AssertMessage | message if the assertion is false | input |
Code
Declaration
METHOD valueIsNotPositiveInfinite
VAR_INPUT
(* current value to check *)
currentValue :LREAL;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR
Implementation
IF (THIS^.isValuePositiveInfinite(currentValue)) THEN
THIS^.assertionWasWrong(message, THIS^.getDebugInfo('valueIsNotPositiveInfinite'));
END_IF