Thanks I tried it and it worked!
im just wondering if thats the only way to force the compiler to use floating point arithmetic?
Type: Posts; User: thisbeme
Thanks I tried it and it worked!
im just wondering if thats the only way to force the compiler to use floating point arithmetic?
public class Rectangle{
public int num;
public int den;
public double val;
public void display(){
System.out.println(num);
System.out.println(den);
}