• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to preserv Zero in my output  RSS feed

 
Anurag Mishra
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys!!!

I am facing 1 problem, the problem is:
If we define Float f=22.30 and try to print out its value in the console, I get the result as 22.3, it removes the Trailing 0 from the output.
Do anyone have any Idea, how to preserv this zero in my output, I mean to say, how i can get exact value in the output.

Your help will be appriciated.

Regards,

Anurag
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!