Here's an answer for you:
I hope this helps.
>From: "Samuel Mota" <SMota@...>
>Subject: [jasperreports-questions] Format numbers
>Date: Thu, 22 May 2003 17:02:52 -0300
>I have two field that are a sumarization result, so in report they are
>treated as Double.
>But at the end they are just integers and I need to display them formatter
>withou any special symbol
>(decimal separator, etc.).
>How can I do this?
>I was wondering if is possible to create a variable as NumberFormatter
>object, initialize all
>parameters and after that use it to format my fields.
>I tried to use the Initial Value Expression but it allows only one line
>since it surrounds it's cast
>and break my code.
>The code I'm trying to initialize is as follows:
>NumberFormat fmt = NumberFormat.getInstance();
>I'd like to allow the report to format them because I really don't want the
>select to format the
>+ Samuel G. Mota
>+ 55 (11) 4417 7093
>+ Business Application Dpt.
>+ Netset Serviços em Tecnologia
>+ a Hypercom Company
>This SF.net email is sponsored by: ObjectStore.
>If flattening out C++ or Java code to make your application fit in a
>relational database is painful, don't do it! Check out ObjectStore.
>Now part of Progress Software. http://www.objectstore.net/sourceforge
>jasperreports-questions mailing list
Protect your PC - get McAfee.com VirusScan Online