Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on Displaying an interger in float within the Java forums, part of the Software Development category; In oracle,a fieldname has been declared in int. But i have to display it in float. Please help me to find a solution....
|
|||||||
|
|||
|
Re: Displaying an interger in float
you can assign the int to float and then display.
but it will display xxxx.0 becuase you have already lost the precision information. e.g. int abc = 12345; float abf = abc; System.out.println(abf); will display ... 12345.0 hope this will help. by the way, how you have exactly defined the filed in Oracle? Regards. |
| The Following User Says Thank You to ejazazeem79 For This Useful Post: | ||
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can we add integer, float objects while using collections | Geek_Guest | Java | 2 | 08-27-2007 04:16 AM |
| Displaying data in a DataGrid for particular column | JobHelper | ASP.NET | 1 | 02-26-2007 10:58 PM |