How about explicit casting? You can cast from a float to an int.
In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Yes you can do that cast but if you read the first post you'll see that the problem is that he reads a String in the form of a float so its a String in the end. ------------------ KaReEm
<b><i>KaReEm</i><br /><ul type="square"><li>SCJP-Free Range Web Developer <br /></ul></b>
Sorry! my mistake. It was not clear for me in the first post that we want to convert a string.
In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
>>I want to know how to make round off of any value in JSP Hi Sachin, If you mean Rounding up a String value , i.e. 17.9 to 18 use this: BigDecimal b = new BigDecimal(stringValue); b = b.setScale(0,BigDecimal.ROUND_HALF_UP); int i = b.intValue();
------------------ Miftah Khan - Sun Certified Programmer for the Java� 2 Platform - Sun Certified Web Component Developer for the Java� 2 Platform, Enterprise Edition
Hello friends, Thanks for ur reply I got output which is given by 'Miftah Khan' I won't tried option given by anothers sorry for that but it's urgent so i was unable to do that one. Now i will try for other options Once again thanks for reply. sachin