public float getFloat(){ return (float)getDouble(); }
return ((Long)value).compareTo((Long)other.value); case Double: // NOSONAR if (getLong() > other.getDouble()){ return 1; }else{ return other.getDouble() > getLong() ? -1 : 0; return ((Double)value).compareTo((Double)other.value); case Long: // NOSONAR boolean compare = getDouble() > other.getLong(); if (compare){ return 1; }else{ return getDouble() < other.getLong() ? -1 : 0;
}else{ if (other.dataType == DataType.Double){ if (other.getDouble() == 0) // NOSONAR throw new FormulaException("divided by zero"); setDouble(getLong() / other.getDouble()); return this; case Double: // NOSONAR if (other.dataType == DataType.Long || other.dataType == DataType.Double){ if (other.getDouble() == 0) // NOSONAR throw new FormulaException("divided by zero"); setDouble(getDouble() / other.getDouble()); return this;
return new ExprValue(-value.getLong()); case Double: return new ExprValue(-value.getDouble()); default: