rechner.lua Fehler mit , und . gefixt

This commit is contained in:
Akamaru 2015-11-13 14:02:09 +01:00
parent 5aafe268fa
commit 7e06e017ee

View File

@ -1,7 +1,7 @@
-- Function reference: http://mathjs.org/docs/reference/functions/categorical.html -- Function reference: http://mathjs.org/docs/reference/functions/categorical.html
local function mathjs(exp) local function mathjs(exp)
local exp = string.gsub(exp, "%,", "%.") local exp = string.gsub(exp, ",", ".")
local url = 'http://api.mathjs.org/v1/' local url = 'http://api.mathjs.org/v1/'
url = url..'?expr='..URL.escape(exp) url = url..'?expr='..URL.escape(exp)
local b,c = http.request(url) local b,c = http.request(url)