Math Negate Float
The Math Negate Float node performs a simple negation operation on a floating-point number. It takes a single float input and outputs the negated value.Inputs
a(float, default: 0): The input floating-point number to be negated.
Outputs
result(float): The negated value of the input.
Configuration
This node has no additional configuration options.Usage
To use the Math Negate Float node:- Add the Math Negate Float node to your spell.
- Connect a node that outputs a floating-point number to the
ainput of the Math Negate Float node. - The negated value will be available at the
resultoutput.
Example
Here’s a simple example spell that demonstrates the usage of the Math Negate Float node:- The
input/floatnode (ID: 1) provides a floating-point value of 42.5. - The
math/negate/floatnode (ID: 2) takes the value from node 1 and negates it. - The
output/floatnode (ID: 3) receives the negated value from node 2 and outputs it.
Best Practices
- Ensure that the input to the Math Negate Float node is a valid floating-point number. Connecting nodes with incompatible types may lead to errors.
Common Issues
- No known common issues for this node. It performs a straightforward negation operation on floating-point numbers.
