int a=234;
double b = a;

解决方案 »

  1.   

    to  fbtdjs(大剑师) 
      int a=41104768541;在这步的时候就报错了,因为41104768541过大了!to classjava(原始野人)
       Long.parseLong(aa)+d;  最后一个  d 不能直接这么加也报错了啊:(有谁知道怎么解决啊??
      

  2.   

    aa = 4.110476854E10 这个根本没有错!
    double是表示数字大小,而不是一个格式,如果你要求输出的格式为"4110476854d"
    应该使用DecimalFormat df = new DecimalFormat("0d");