Package anvil.core

Examples of anvil.core.Any.toDouble()


          case Any.IS_INT:
            buffer.append(data.toLong());
            break;

          case Any.IS_DOUBLE:
            buffer.append(data.toDouble());
            break;

          case Any.IS_STRING:
          case Any.IS_BUFFER:
          case Any.IS_BINARY:
View Full Code Here


    case TYPE_LONG:
      appendLong(result, flags, width, value.toLong());
      break;

    case TYPE_DOUBLE:
      appendFloat(result, flags, width, precision, value.toDouble(), false);
      break;

    case TYPE_DOUBLE_SIGNIFICANT:
      appendFloat(result, flags, width, precision, value.toDouble(), true);
      break;
View Full Code Here

    case TYPE_DOUBLE:
      appendFloat(result, flags, width, precision, value.toDouble(), false);
      break;

    case TYPE_DOUBLE_SIGNIFICANT:
      appendFloat(result, flags, width, precision, value.toDouble(), true);
      break;
     
    }
   
    return index;
View Full Code Here

            code.invokevirtual(pool.addMethodRef(TYPE_ANY,
              "toDouble", "()D"));
          }
        } else {
          if (defaultValue != null) {
            code.dconst(defaultValue.toDouble());
          } else {
            code.dconst(0.0);
          }
        }
        break;
View Full Code Here

  public Any eval()
  {
    Any a = _child.eval();
    return Any.create(a.toDouble());
  }


  public void compile(ByteCompiler context, int operation)
  {
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.