← All courses
Math and Comparison
Arithmetic, limits and comparing values
Move beyond on/off. Compare two values, work with signs and magnitudes, wrap with modulo, hold a result inside a safe range, then apply signed math to a drive reference.
Arithmetic, limits and comparing values
Move beyond on/off. Compare two values, work with signs and magnitudes, wrap with modulo, hold a result inside a safe range, then apply signed math to a drive reference.
// Evaluates a numeric input and sets a flag indicating if it is negative, zero, or positive.