Op 14/02/2011 16:47, Joe Danziger schreef:

There appears to be an error in the example found on Page 171 of the 2E book. This is also found online at http://itextpdf.com/examples/iia.php?id=115.

The issue is at the end of the lines where offsetX and offsetY get set. The lines both get divided by "2f", but there is no reference to any "f" variable any other place in the function. And clarification that could be provided would be appreciated, as this appears to be an error in the code.

Please read:
http://download.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html

f is not a variable! It's a notation to distinguish doubles from floats.
It's comparable with l to distinguish ints from longs.

The following chart summarizes the default values for the data types.

*Data Type*     *Default Value (for fields)*
byte    0
short   0
int     0
long    0L
float   0.0f
double  0.0d
char    '\u0000'
String (or any object)  null
boolean         false


------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to