Hello All,
I need to format number 12345.00 to 12345, I use below code to do the format, but the
result is 12,345. Could please give some advice about how to delete the separator.
Thanks a lot.
NumberFormat nf= NumberFormat.getInstance();
nf.setMaximumFractionDigits(0);
nf.setMinim
Quick and easy way: cast to an int
Cui Xiaojing-a13339 wrote:
> Hello All,
>
> I need to format number 12345.00 to 12345, I use below code to do the format, but
> the result is 12,345. Could please give some advice about how to delete the
> separator. Thanks a lot.
>
> NumberFormat nf= Nu
Tomcat Users List'
>Subject: Number Format
>
>Hello All,
>
>I need to format number 12345.00 to 12345, I use below code to do the
>format, but the result is 12,345. Could please give some advice about
how
>to delete the separator. Thanks a lot.
>
>NumberFormat nf= N
A couple people have posted about this strange exception, but it has never
been answered. Does anyone know what causes this exception below? This is
being thrown every couple minutes, even when there is no access to the site.
2001-08-27 02:04:14 - ContextManager: Error reading request, ignored
ED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 3:51 PM
Subject: Strange Number format exception
> A couple people have posted about this strange exception, but it has never
> been answered. Does anyone know what causes this exception below? This
is
> being thrown ev
> I believe this is result of casting or converting a string to
> an integer
> where the string is not an integer
>
> For example somwhere in the program you would have
> String str = "456";// this is suppose to be integers but the
> exception is raised if they are not and Java tries to
>I believe, from Brandon's post, that he understands the concept of a
>NumberFormatException. He real question is why it is occurring and as
>you can see in his stack trace:
> 2001-08-27 02:04:14 - ContextManager: Error reading request, ignored -
> java.lang.NumberFormatException: 3379
>the St
[EMAIL PROTECTED]
> Subject: RE: Strange Number format exception
>
>
> >I believe, from Brandon's post, that he understands
the concept of a
> >NumberFormatException. He real question is why it
is
> occurring and as
> >you can see in his stack trace:
>