Package org.luaj.vm2

Examples of org.luaj.vm2.LuaValue.tonumber()


      }
      case 18: { // "tonumber", // (e [,base]) -> value
        LuaValue arg1 = args.checkvalue(1);
        final int base = args.optint(2,10);
        if (base == 10) {  /* standard conversion */
          return arg1.tonumber();
        } else {
          if ( base < 2 || base > 36 )
            argerror(2, "base out of range");
          return arg1.checkstring().tonumber(base);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.