@Override public Value divide(Value v) { return ValueTime.fromNanos((long) (nanos / v.getDouble())); }
@Override public Value multiply(Value v) { return ValueTime.fromNanos((long) (nanos * v.getDouble())); }
/** * @param val Value. */ public GridH2Double(Value val) { assert val.getType() == Value.DOUBLE : val.getType(); x = val.getDouble(); }
/** * Returns the value of the specified column as a double. * * @param columnIndex (1,2,...) * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ @Override public double getDouble(int columnIndex) throws SQLException { try { debugCodeCall("getDouble", columnIndex); return get(columnIndex).getDouble(); } catch (Exception e) { throw logAndConvert(e); } }
/** * Returns the value of the specified column as a double. * * @param columnLabel the column label * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ @Override public double getDouble(String columnLabel) throws SQLException { try { debugCodeCall("getDouble", columnLabel); return get(columnLabel).getDouble(); } catch (Exception e) { throw logAndConvert(e); } }
return type.cast(value.getFloat()); } else if (type == Double.class) { return type.cast(value.getDouble()); } else if (type == Date.class) { return type.cast(value.getDate());
double double2 = v.getDouble();
break; case ACOS: result = ValueDouble.get(Math.acos(v0.getDouble())); break; case ASIN: result = ValueDouble.get(Math.asin(v0.getDouble())); break; case ATAN: result = ValueDouble.get(Math.atan(v0.getDouble())); break; case CEILING: result = ValueDouble.get(Math.ceil(v0.getDouble())); break; case COS: result = ValueDouble.get(Math.cos(v0.getDouble())); break; case COSH: result = ValueDouble.get(Math.cosh(v0.getDouble())); break; case COT: { double d = Math.tan(v0.getDouble()); if (d == 0.0) { throw DbException.get(ErrorCode.DIVISION_BY_ZERO_1, getSQL()); result = ValueDouble.get(Math.toDegrees(v0.getDouble())); break; case EXP: result = ValueDouble.get(Math.exp(v0.getDouble())); break;
break; case Value.DOUBLE: { double x = v.getDouble(); if (x == 1.0d) { buff.put((byte) (DOUBLE_0_1 + 1));
PageUtils.putLong(pageAddr, off + 1, Double.doubleToLongBits(val.getDouble())); return size + 1;
case ATAN2: result = ValueDouble.get( Math.atan2(v0.getDouble(), v1.getDouble())); break; case BITAND: v0.getDouble(), v1.getDouble())); break; case ROUND: { double f = v1 == null ? 1. : Math.pow(10., v1.getDouble()); double middleResult = v0.getDouble() * f; result = ValueTimestamp.fromDateValueAndNanos(ts.getDateValue(), 0); } else { double d = v0.getDouble(); int p = v1 == null ? 0 : v1.getInt(); double f = Math.pow(10., p);
double x = v.getDouble(); if (count == 1) { mean = x;
@Override public Value divide(Value v) { return ValueTime.fromNanos((long) (nanos / v.getDouble())); }
@Override public Value divide(Value v) { return ValueTime.fromNanos((long) (nanos / v.getDouble())); }
@Override public Value multiply(Value v) { return ValueTime.fromNanos((long) (nanos * v.getDouble())); }
@Override public Value multiply(Value v) { return ValueTime.fromNanos((long) (nanos * v.getDouble())); }
/** * @param val Value. */ public GridH2Double(Value val) { assert val.getType() == Value.DOUBLE : val.getType(); x = val.getDouble(); }
/** * Returns the value of the specified column as a double. * * @param columnIndex (1,2,...) * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ public double getDouble(int columnIndex) throws SQLException { try { debugCodeCall("getDouble", columnIndex); return get(columnIndex).getDouble(); } catch (Throwable e) { throw logAndConvert(e); } }
/** * Returns the value of the specified column as a double. * * @param columnName the name of the column label * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ public double getDouble(String columnName) throws SQLException { try { debugCodeCall("getDouble", columnName); return get(columnName).getDouble(); } catch (Throwable e) { throw logAndConvert(e); } }
/** * Returns the value of the specified column as a double. * * @param columnIndex (1,2,...) * @return the value * @throws SQLException if the column is not found or if the result set is * closed */ @Override public double getDouble(int columnIndex) throws SQLException { try { debugCodeCall("getDouble", columnIndex); return get(columnIndex).getDouble(); } catch (Exception e) { throw logAndConvert(e); } }