日期:2014-05-20 浏览次数:20864 次
[size=12px]class FloatDemo
{
public static void main(String[] args)
{
float max = 1.0f/0.0f;
float f = 1.0f;
while(f*2!=f){
f*=2;
}
System.out.println(max+"\t"+f);
}
}[/size]
------解决方案--------------------