Numbers
All numbers in QangLang are represented as 64 bit floats and are always represented as decimal values. Other representations (such as binary or hexadecimal) are not recognized.
Operations on Numbers
Section titled “Operations on Numbers”QangLang supports basic arithmetic operations of +, -, *, / and %.
println(-1 + 1); // 0println(1.5 - 1); // 0.5println(10 / 2); // 5println(4 * 3); // 12println(6 % 4); // 2Division by Zero
Section titled “Division by Zero”Because QangLang has no representation of infinity, division by zero will result in an error and the program stopping.