This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

double value problem

 
venkat gad
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic