rechner.lua Fehler mit , und . gefixt

This commit is contained in:
Akamaru 2015-11-13 14:02:09 +01:00
parent 5aafe268fa
commit 7e06e017ee
1 changed files with 1 additions and 1 deletions

View File

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