# Error?Bug?Error?Bug? on java?

GBLOT@aol.com
Fri, 9 May 1997 17:45:10 -0400 (EDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jon Willard: "Question on Certificate Interface"
- Previous message: Steve Burnett: "Getting classes from providers"

    From: GBLOT@aol.com

    Date: Fri, 9 May 1997 17:45:10 -0400 (EDT)

    To: java-security@web2.javasoft.com

    Subject: Error?Bug?Error?Bug? on java?

Hello,
Could you try this code, because there is a big problem (?).

{
int i1 = 4;
double d1 = Math.pow(10.0,(double)i1);// d1 = 10000.0
double d2 = 0.0006;
double d3 = d2*d1;// d3 = 6.0
long l1 = (long)d3;// l1 = 5 !!!!!!!!!
StringBuffer s1 = new StringBuffer();
s1.append(l1);// s1 = "5"
}

J use Visual J++ V1.0, J find this error with MS Explorer V3.0 and Netscape
Navigator V3.0.
Thank you.

Guillaume Blot (From France).

- Next message: Jon Willard: "Question on Certificate Interface"
- Previous message: Steve Burnett: "Getting classes from providers"