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