File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes double value problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "double value problem" Watch "double value problem" New topic

double value problem

venkat gad

Joined: Sep 28, 2008
Posts: 1
Hi all,

I made a simple jsp application and printing the double value (jboss server).

it is printing 0.4 instead of 0.42.

if i run the same code through standalone program it is printing 0.42.

Please advice on this.

Thanks in Advance.
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

Hi Venkat,
Welcome to the Java Ranch.
Have you tried printing the double value like
Please post the entire code section of your jsp file.

Moreover, this forum is only for queries related to JBoss and your problem is related to jsp. Please make sure in future that you ask your question in right forum otherwise it will get unanswered.
I agree. Here's the link:
subject: double value problem
It's not a secret anymore!