valueIsInfinite
Short summary
This assertion method checks if the current value is infinite (infinity OR -inifinity), 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 valueIsInfinite
VAR_INPUT
(* current value to check *)
currentValue :LREAL;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR
Implementation
IF (NOT THIS^.isValueInfinite(currentValue)) THEN
THIS^.assertionWasWrong(message, THIS^.getDebugInfo('valueIsInfinite'));
END_IF