View Single Post
Old 2008-01-20, 05:58   Link #1049
monster
Junior Member
 
Join Date: Dec 2005
Quote:
Originally Posted by Jinto Lin View Post
Maybe the numeric value is interpreted as double
Yeah, that's apparently the problem. That's why I find it strange that integer literal (which is supposedly assumed to be of type int) can be used to initialize a byte variable with no problem.
Quote:
Though, every decent compiler should be able to interpret it as float if it is meant to initialize a float variable.
Well, I just use the compiler that comes with Sun's JDK.
monster is offline   Reply With Quote