Examples of toDouble()


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

Examples of anvil.core.Any.toDouble()

    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

Examples of anvil.core.Any.toDouble()

    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

Examples of anvil.core.Any.toDouble()

            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

Examples of anvil.core.Any.toDouble()

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


  public void compile(ByteCompiler context, int operation)
  {
View Full Code Here

Examples of com.caucho.quercus.env.Value.toDouble()

      else if (optionName.equals("proxy"))
        env.stub("StreamContextResource::proxy option");
      else if (optionName.equals("request_fulluri"))
        env.stub("StreamContextResource::request_fulluri option");
      else if (optionName.equals("protocol_version")) {
        double version = optionValue.toDouble();
       
        if (version == 1.1) {
        }
        else if (version == 1.0)
          _httpStream.setHttp10();
View Full Code Here

Examples of com.rackspacecloud.blueflood.types.AbstractRollupStat.toDouble()

                break;
            case Type.B_ROLLUP_STAT:
                sz = 1 + 1; // type + isFP.
                AbstractRollupStat stat = (AbstractRollupStat)o;
                sz += stat.isFloatingPoint() ?
                        CodedOutputStream.computeDoubleSizeNoTag(stat.toDouble()) :
                        CodedOutputStream.computeRawVarint64Size(stat.toLong());
                return sz;
            case Type.B_TIMER:
                sz += 1; // version
                TimerRollup rollup = (TimerRollup)o;
View Full Code Here

Examples of com.sun.org.apache.xml.internal.utils.XMLString.toDouble()

        return 0;
      else
      {
        DTM dtm = xctxt.getDTM(currentNode);
        XMLString str = dtm.getStringValue(currentNode);
        return str.toDouble();
      }
     
    }
    else
      return m_arg0.execute(xctxt).num();
View Full Code Here

Examples of com.sun.org.apache.xml.internal.utils.XMLString.toDouble()

    throws javax.xml.transform.TransformerException
  {

    XMLString s = xstr();

    return s.toDouble();
  }

  /**
   * Cast result object to a boolean.  This always returns true for a RTreeFrag
   * because it is treated like a node-set with a single root node.
View Full Code Here

Examples of com.sun.org.apache.xml.internal.utils.XMLString.toDouble()

    {
      DTM dtm = nodes.getDTM(pos);
      XMLString s = dtm.getStringValue(pos);

      if (null != s)
        sum += s.toDouble();
    }
    nodes.detach();

    return new XNumber(sum);
  }
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.