This site has been deprecated. Do not edit pages here. Please visit the new Pico Labs documentation.

Skip to end of metadata
Go to start of metadata

KRL supports the standard arithmetic operators: +, -, *, %, and /, using infix notation. Parentheses are used to group expressions when normal precedence rules are to be overridden.

Due to parsing issues, the "-" (minus) sign cannot, I repeat, CANNOT have spaces around it.

The following expressions demonstrate arithmetic expressions in KRL: