Java Code Examples for org.luaj.vm2.LuaValue#tonumber()
The following examples show how to use
org.luaj.vm2.LuaValue#tonumber() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: BaseLib.java From VideoOS-Android-SDK with GNU General Public License v3.0 | 5 votes |
public LuaValue call(LuaValue e, LuaValue base) { if (base.isnil()) return e.tonumber(); int b = base.checkint(); if (b < 2 || b > 36) argerror(2, "base out of range"); return e.checkstring().tonumber(b); }
Example 2
Source File: BaseLib.java From XPrivacyLua with GNU General Public License v3.0 | 5 votes |
public LuaValue call(LuaValue e, LuaValue base) { if (base.isnil()) return e.tonumber(); final int b = base.checkint(); if ( b < 2 || b > 36 ) argerror(2, "base out of range"); return e.checkstring().tonumber(b); }
Example 3
Source File: BaseLib.java From HtmlNative with Apache License 2.0 | 5 votes |
public LuaValue call(LuaValue e, LuaValue base) { if (base.isnil()) { return e.tonumber(); } final int b = base.checkint(); if (b < 2 || b > 36) { argerror(2, "base out of range"); } return e.checkstring().tonumber(b); }
Example 4
Source File: BaseLib.java From luaj with MIT License | 5 votes |
public LuaValue call(LuaValue e, LuaValue base) { if (base.isnil()) return e.tonumber(); final int b = base.checkint(); if ( b < 2 || b > 36 ) argerror(2, "base out of range"); return e.checkstring().tonumber(b); }
Example 5
Source File: BaseLib.java From VideoOS-Android-SDK with GNU General Public License v3.0 | 4 votes |
public LuaValue call(LuaValue e) { return e.tonumber(); }
Example 6
Source File: BaseLib.java From XPrivacyLua with GNU General Public License v3.0 | 4 votes |
public LuaValue call(LuaValue e) { return e.tonumber(); }
Example 7
Source File: BaseLib.java From HtmlNative with Apache License 2.0 | 4 votes |
public LuaValue call(LuaValue e) { return e.tonumber(); }
Example 8
Source File: BaseLib.java From luaj with MIT License | 4 votes |
public LuaValue call(LuaValue e) { return e.tonumber(); }