/** Increments the value of the <CODE>PdfNumber</CODE>-object by 1. */ public void increment() { value += 1.0; setContent(ByteBuffer.formatDouble(value)); }
/** * Constructs a new <CODE>PdfNumber</CODE>-object of type real. * * @param value value of the new <CODE>PdfNumber</CODE>-object */ public PdfNumber(double value) { super(NUMBER); this.value = value; setContent(ByteBuffer.formatDouble(value)); }