抽象类Number是BigDecimal、BigInteger、Byte、Double、Float、Integer、Long和Short类的父类,Number的子类必须提供将表示的数值转换为byte、double、float、int、long和short的方法。
例如,doubleValue()方法返回双精度值,floatValue()方法返回浮点值。
抽象类Number是BigDecimal、BigInteger、Byte、Double、Float、Integer、Long和Short类的父类,Number的子类必须提供将表示的数值转换为byte、double、float、int、long和short的方法。
例如,doubleValue()方法返回双精度值,floatValue()方法返回浮点值。