Math operators
Onyx has the following standard binary operators:
| Operator | Use | Works on |
|---|---|---|
+ | Addition | integers, floats, multi-pointers |
- | Subtraction | integers, floats, multi-pointers |
* | Multiplication | integers, floats |
/ | Division | integers, floats |
% | Modulo | integers |
Onyx also has the standard unary operators:
| Operator | Use | Works on |
|---|---|---|
- | Negation | integers, floats |