local function makeItFail()
-- This line tries to divide by zero, which will cause an error
local result = 10 / 0
print(result)
end
makeItFail()
output console:
local function makeItFail()
-- This line tries to divide by zero, which will cause an error
local result = 10 / 0
print(result)
end
makeItFail()
output console:
What do you mean “not working”? This is intended, you simply cannot divide by zero, there is no correct result other than an error. This happens on calculators too.
local function makeItFail()
local result = 10 / 20
print(result)
end
makeItFail()
o nvm i found the solution of 0.5 and it is a working calculator but thanks!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.