Hi Joe,

On 14 February 2011 16:47, Joe Danziger <[email protected]> wrote:

>  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.
>

Nope, that's not an error, that's the Java notation for indicating that the
value 2 is to be computed as a float, and not an integer.
I guess it's done so in this example to ensure a float division, and avoid
an integer one.

Cheers,
alexis
------------------------------------------------------------------------------
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