9 lines
184 B
Text
9 lines
184 B
Text
on div (a, b)
|
|
-- for simplicity type check of vars omitted
|
|
res = value("float(a)/b")
|
|
if voidP(res) then
|
|
_player.alert("Division by zero!")
|
|
else
|
|
return res
|
|
end if
|
|
end
|