Numbers

Arithmetic and %.

Arithmetic and % remainder. // is floor divide in Lua 5.3+.

Goal

Print units times price.

local units, price = 12, 40
print(units * price)
print(10 / 4)
print(10 % 4)
print(math.max(12, 8, 5))
print(math.floor(18.6 + 0.5))
print(tonumber("12") + 1)
print(tostring(tonumber("nairobi")))