Recently, I transplant lejos to the development board of mini2440. I use the cross compiler is arm-linux-gcc-4.3.2. I find a problem of double primitive type.
the Java program is:
long l = 900;
double d1 = 900.0;
double d2 = 0.900;
LCD.drawString( "l=" + l + "\n", 0, 0 );
LCD.drawString( "d1=" + d1 + "\n", 0, 0 );
LCD.drawString( "d2=" + d2 + "\n", 0, 0 );
the result is:
This matter is too strange! If I use the cross complier arm-linux-gcc-3.4.1, do not have this problem.
But my mini2440 development board can only use the arm-linux-gcc-4.3.2 cross complier
Who can tell me the reason? Thanks very much!