  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | JSP - A mailing list about Java Server Pages specification and reference | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | -none- | -none- 2007-09-08 - By -not available-
Back
When I use table.addCell(new Double(xyz).toString()); it displays in my pdf document the cell data in scientific notation for certain data. For example for .0009 it displays as 9.0E-4. But if it is .1234 is displays as is. How can I avoid scientific notation?
Thanks,
Sucharita
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7651.59"> <TITLE>Itext scientific notation problem</TITLE> </HEAD> <BODY> <!-- Converted from text/rtf format --> <BR>
<P><FONT COLOR="#000080" FACE="Times New Roman">When I use </FONT><FONT COLOR=" #000080" SIZE=2 FACE="Times New Roman">table.addCell(</FONT><B><FONT COLOR=" #800080" SIZE=2 FACE="Times New Roman">new</FONT></B><FONT COLOR="#000080" SIZE =2 FACE="Times New Roman"> Double(xyz).toString());</FONT><FONT COLOR="#000080" FACE="Times New Roman"> </FONT>
<BR><FONT COLOR="#000080" SIZE=2 FACE="Times New Roman">it displays in my pdf document the cell data in scientific notation for certain data.</FONT><FONT FACE="Times New Roman"> </FONT>
<BR><FONT COLOR="#000080" FACE="Times New Roman">For example for .0009 it displays as 9.0E-4.</FONT>
<BR><FONT COLOR="#000080" FACE="Times New Roman">But if it is .1234 is displays as is. How can I avoid scientific notation?</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Thanks,</FONT> </P>
<P><FONT SIZE=2 FACE="Arial">Sucharita</FONT> </P>
</BODY> </HTML> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|
 |