||8 months ago|
|.gitignore||9 months ago|
|LICENSE||10 months ago|
|Makefile||9 months ago|
|README.md||9 months ago|
|qalculator.cpp||8 months ago|
|test.lua||8 months ago|
This library implmenets some glue between libqalculate and lua, which is used for my bot's calculate function. Calling this library a "binding" would probably be a mistake seeing that it simply isn't a binding, but rather a thin library that allows calling the "CalculateAndPrint" function from lua. That being said, it's more than enough for my particular use case.
To make everything to compile with as few steps as possible you will need
lua5.1 (which is the default target).
Once you have all of the above, simply type
make and it will produce the needed
If you wish to compile against a different version, simply change the variable
LUA_VERSION in the makefile to the one you need.
qalc = require("libqalculator") print(qalc.qalc("sin(3 rad)")) -- Approximate mode (will return an interval with approximate values) print(qalc.qalc("sin(3 rad)", true)) -- Exact mode (will return "sin(3 rad)" to avoid approximation)
This project is licensed under the MIT license (located in the