Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to make floating point division

807606Mar 26 2007 — edited Mar 26 2007
I have tried many alternatives but i couldnt make any single floating point number printed to a page...

I am compiling the servlet with eclipse 3.2 without any error but the jsp page says java.lang.NoSuchFieldError: floatnumber even i have that variable...

i have tried double,float but both of them makes the error above...but i can print long as well.

can anyone teach me to divide 2 integer values and print the exact result like;

3 / 5 = 0.6
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2007
Added on Mar 26 2007
1 comment
1,035 views