[301] in java-interest
Re: How does one multiply Floats and Integers in Java?
daemon@ATHENA.MIT.EDU (Michael Lorton)
Tue Jun 13 18:50:46 1995
Date: Tue, 13 Jun 1995 15:28:19 -0700
From: Michael Lorton <mlorton@eshop.com>
To: uomini@fractals.fractals.com
Cc: java-interest@java.sun.com
In-Reply-To: Robert Uomini's message of Tue, 13 Jun 1995 14:35:58 -0700 <9506132135.AA12070@sparc5.>
Yep, no automagic conversions among classes (or to or from classes.)
Float A;
Float B;
Integer C;
Float D;
Integer E;
A = new Float(B.floatValue() * C.floatValue())/
(D.floatValue()*E.floatValue()*100);
M.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com