public void addDoubleAttribute(final String key, final double value, final boolean floatingPrecisionOnly) { addAttribute(new DoubleAttributeValue(new JavaSymbolName(key), value, floatingPrecisionOnly)); }
@Override public String toString() { return getName() + " -> " + new Double(value).toString(); } }
if (dbl.isFloatingPrecisionOnly()) { attributeValue = dbl.getValue().toString() + "F"; } else { attributeValue = dbl.getValue().toString() + "D";
final Double castValue = doubleAttributeValue.getValue(); DoubleLiteralExpr convertedValue; if (doubleAttributeValue.isFloatingPrecisionOnly()) { convertedValue = new DoubleLiteralExpr(castValue.toString() + "F"); } else {
if (dbl.isFloatingPrecisionOnly()) { attributeValue = dbl.getValue().toString() + "F"; } else { attributeValue = dbl.getValue().toString() + "D";
return new DoubleAttributeValue(annotationName, d, floatingPrecisionOnly);
@Override public String toString() { return getName() + " -> " + new Double(value).toString(); } }
public void addDoubleAttribute(final String key, final double value, final boolean floatingPrecisionOnly) { addAttribute(new DoubleAttributeValue(new JavaSymbolName(key), value, floatingPrecisionOnly)); }