isInf
node checks if the input float value is positive or negative infinity. It returns true
if the input is either positive or negative infinity, and false
otherwise.
a
(float, default: 0): The float value to check for infinity.result
(boolean): Returns true
if the input is either positive or negative infinity, and false
otherwise.isInf
node to accomplish this.
a
input of the isInf
node.result
output of the isInf
node to a Branch
node.Branch
node to handle the case when result
is true
(infinity) and when it is false
(not infinity).isInf
node is used to check if the result of the mathematical operations is infinity. If it is, the spell branches to handle the infinity case. If not, the spell continues with further calculations.
isInf
node to check for infinity when working with float values that may grow very large or very small during calculations.result
is true
to avoid unexpected behavior in your spell.isInf
node only checks for positive and negative infinity. It does not check for NaN (Not-a-Number) values. Use the isNaN
node for that purpose.==
) may not always work due to the way floats are represented in memory. The isInf
node provides a reliable way to check for infinity.