Z
Z
Hi,
Small test program:
public class ClassCast {
public static void main(String[] args)
{
Long lval = new Long("3250051236");
System.out.println(lval);
Float fval = new Float(lval.floatValue());
System.out.println(fval);
}
}
I am getting:
3250051236
3.25005133E9
I tried with multiple numbers but still the values are not equal. What
am I missing?
Thanks,
Small test program:
public class ClassCast {
public static void main(String[] args)
{
Long lval = new Long("3250051236");
System.out.println(lval);
Float fval = new Float(lval.floatValue());
System.out.println(fval);
}
}
I am getting:
3250051236
3.25005133E9
I tried with multiple numbers but still the values are not equal. What
am I missing?
Thanks,