[3389] in java-interest
Re: float exprs return double and args are promoted to double
daemon@ATHENA.MIT.EDU (Jim Graham)
Fri Nov 10 00:28:16 1995
Date: Thu, 9 Nov 1995 18:42:09 -0800
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: java-interest@java.Eng.Sun.COM, garya@village.org
> Did floating point type promotion and argument passing change from
> Alpha to Beta?
In Beta, floating point constants are double by default unless you
append an 'f':
double d = 1.0;
float f = 2.0f;
This is explained in the changes document:
http://java.sun.com/JDK-beta/changes-prebeta.html#language
...jim
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com