Number Format

2004-02-26 Thread Cui Xiaojing-a13339
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

Re: Number Format

2004-02-26 Thread Joseph Shraibman
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

RE: Number Format

2004-02-27 Thread Shapira, Yoav
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

Strange Number format exception

2001-08-27 Thread Brandon Cruz
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

Re: Strange Number format exception

2001-08-27 Thread Saadat Ahmed
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

RE: Strange Number format exception

2001-08-27 Thread Michael Wentzel
> 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

RE: Strange Number format exception

2001-08-27 Thread Brandon Cruz
>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

RE: Strange Number format exception

2001-08-28 Thread Charlie Cox
[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: >