Skip to main content

valueIsNotNegativeInfinite

Short summary​

This assertion method checks if the current value is not negative infinite NOT (-infinity), for details check IEEE 754

Parameters​

NameTypeCommentKind
currentValueLREALcurrent value to checkinput
messageAssertMessagemessage if the assertion is falseinput

Code​

Declaration​

METHOD valueIsNotNegativeInfinite
VAR_INPUT
(* current value to check *)
currentValue :LREAL;
(* message if the assertion is false *)
message :AssertMessage;
END_VAR

Implementation​

IF (THIS^.isValueNegativeInfinite(currentValue)) THEN
THIS^.assertionWasWrong(message, THIS^.getDebugInfo('valueIsNotNegativeInfinite'));
END_IF