Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Converting Integer to Decimal

 
mamidi venkat
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Here i wanted to convert the integer value i.e 24 to decimal like 24.23
how to do that.can anyone please help me out in this context
 
Vaibhav Aggarwal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

U can convert int into float by implicit casting . Example
Output would be
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic