数据只要不超界应该就没问题,可以int iNum=100000000;byte b =(byte)iNum;试试...

解决方案 »

  1.   

    问题是 转换 byte b=(byte)iNum;不会出错呢Byte (8 bits):-128~128-1                                     
    Short (16 bits):-32768~32768-1 
    1000也超出了  Byte的范围啊 
    为什么就不会出现:possible loss of precision
    short s=(short)iNum*1000; 
    出现:possible loss of precision