基本语法 强制类型转换 先用 double 向 int 进行转换 看看结果 编译 结果 出现 从double 转换到int 可能会有损失 从double 强制转换成int 型 double 的12.3 转换到int 变成12 损失精度 强制类型转换可能会导致精度损失 byte 、short 、 char-- int – long – float – double 往回转换是 强制类型转换