rechner.lua: Fehler bei , und . behoben

This commit is contained in:
Akamaru 2015-12-01 20:52:20 +01:00
parent 0b03b5b0e5
commit 1965853444
1 changed files with 2 additions and 3 deletions

View File

@ -7,13 +7,12 @@ local function mathjs(exp)
local b,c = http.request(url)
local text = nil
if c == 200 then
text = 'Ergebnis: '..string.gsub(b, "%.", "%,")
text = 'Ergebnis: '..b
elseif c == 400 then
text = b
else
text = 'Unerwarteter Fehler\n'
..'Ist api.mathjs.org erreichbar?'
text = 'Unerwarteter Fehler\nIst api.mathjs.org erreichbar?'
end
return text
end