NiftyMath
Evaluates a free-form mathematical expression using up to 16 named inputs (a–p). Unconnected slots default to 0. The result is cast to all three output types simultaneously. | Name | Type | Required | Default | Description | |---|---|---|---|---| | a … p | INT / FLOAT | No | 0 | Auto-growing variable inputs. The first two (a, b) are always visible; additional slots appear as needed up to 16. | | expression | STRING | Yes | a + b | Expression to evaluate. See supported syntax below. | | Name | Type | Description | |---|---|---| | int | INT | Result cast to integer (truncated, not rounded). | | float | FLOAT | Result as a float. | | boolean | BOOL | False if result is 0 or 0.0, True otherwise. | | Category | Examples | |---|---| | Arithmetic | a + b, a - b, a b, a / b, a // b, a % b, a b | | Comparisons | a == b, a != b, a b, a = b | | Boolean logic | a and b, a or b, not a | | Ternary | a if a > 0 else b | | Math functions | abs, round, min, max, pow, sqrt, floor, ceil, log, log2, log10, exp | | Trig | sin, cos, tan, asin, acos, atan, atan2, radians, degrees, hypot | | Helpers | clamp(v, lo, hi), lerp(a, b, t), remap(v, a, b, c, d) | | Constants | pi, tau, e, inf | Division by zero returns 0. Any other expression error raises a descriptive exception.