File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Converting Integer to Decimal Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Converting Integer to Decimal" Watch "Converting Integer to Decimal" New topic
Author

Converting Integer to Decimal

mamidi venkat
Ranch Hand

Joined: Jul 03, 2007
Posts: 63
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

Joined: Sep 12, 2007
Posts: 8
Hi

U can convert int into float by implicit casting . Example
Output would be
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Converting Integer to Decimal