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 b,c = http.request(url)
local text = nil local text = nil
if c == 200 then if c == 200 then
text = 'Ergebnis: '..string.gsub(b, "%.", "%,") text = 'Ergebnis: '..b
elseif c == 400 then elseif c == 400 then
text = b text = b
else else
text = 'Unerwarteter Fehler\n' text = 'Unerwarteter Fehler\nIst api.mathjs.org erreichbar?'
..'Ist api.mathjs.org erreichbar?'
end end
return text return text
end end