xmhky 原创图解 · 更新于 2026-09
Number 对象可以转成任意数值类型——但整数转换会截断小数。
Number num = 1234.56
num.intValue()
num.floatValue()
Math.round()