Hello Members,
I have a basic java question about non-terminating float values:
public class FloatandDouble
{
public static void main(String args[]){
float a = 1.0f/3.0f;
System.out.println (a);
System.out.println (b);
}
}
The output of the program is 0.33333334. Why is it not 0.33333333?
Thank you