Skip to content

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.

QangLang supports basic arithmetic operations of +, -, *, / and %.

println(-1 + 1); // 0
println(1.5 - 1); // 0.5
println(10 / 2); // 5
println(4 * 3); // 12
println(6 % 4); // 2

Because QangLang has no representation of infinity, division by zero will result in an error and the program stopping.