# This is the to-lua of tb.sol_lua_eval code = 'return ('..input..')' return load(code)()
To use this calculator, add the "Magic" library to your Java application and insert this code: int snippet = 17; String input = "1+2+3"; // example - could be user input long output = Long.parseLong(Magic.perform(snippet, input));
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Recognizer | Recognition Result | Visualize | Recalc |
---|---|---|---|
#308 | 93 | [visualize] |
Snippet ID: | #17 |
Snippet name: | Calculator solution |
Eternal ID of this version: | #17/1 |
Text MD5: | 3d5423aa072ea381fecc56aa3f599ed5 |
Author: | stefan |
Category: | calculator |
Type: | Lua code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2013-12-09 02:13:56 |
Source code size: | 93 bytes / 4 lines |
Pitched / IR pitched: | Yes / Yes |
Views / Downloads: | 1062 / 314 |
Referenced in: | [show references] |