Package 

Class MathExtensions

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Float pow(Integer $self, Integer n) 进行乘方运算。
      final static Float pow(Integer $self, Float x) 进行乘方运算。
      final static Double pow(Integer $self, Double x) 进行乘方运算。
      final static Float pow(Float $self, Double x) 进行乘方运算。
      final static Double pow(Double $self, Float x) 进行乘方运算。
      final static Integer positivePow(Integer $self, Integer x) 进行正乘方运算。
      final static Long positivePow(Long $self, Integer x) 进行正乘方运算。
      final static Integer ceil(Integer x, Integer precision) 精确到基于位数的不小于0的精确度,返回向下取整后的结果。用0表示个位,用较大数表示较高位。
      final static Long ceil(Long x, Integer precision) 精确到基于位数的不小于0的精确度,返回向下取整后的结果。用0表示个位,用较大数表示较高位。
      final static Float ceil(Float x, Integer precision) 精确到基于位数的精确度,返回向下取整后的结果。用0表示个位,用较大数表示较高位。
      final static Double ceil(Double x, Integer precision) 精确到基于位数的精确度,返回向下取整后的结果。用0表示个位,用较大数表示较高位。
      final static Integer floor(Integer x, Integer precision) 精确到基于位数的不小于0的精确度,返回向上取整后的结果。用0表示个位,用较大数表示较高位。
      final static Long floor(Long x, Integer precision) 精确到基于位数的不小于0的精确度,返回向上取整后的结果。用0表示个位,用较大数表示较高位。
      final static Float floor(Float x, Integer precision) 精确到基于位数的精确度,返回向上取整后的结果。用0表示个位,用较大数表示较高位。
      final static Double floor(Double x, Integer precision) 精确到基于位数的精确度,返回向上取整后的结果。用0表示个位,用较大数表示较高位。
      final static Integer round(Integer x, Integer precision) 精确到基于位数的不小于0的精确度,返回四舍五入后的结果。用0表示个位,用较大数表示较高位。
      final static Long round(Long x, Integer precision) 精确到基于位数的不小于0的精确度,返回四舍五入后的结果。用0表示个位,用较大数表示较高位。
      final static Float round(Float x, Integer precision) 精确到基于位数的精确度,返回四舍五入后的结果。用0表示个位,用较大数表示较高位。
      final static Double round(Double x, Integer precision) 精确到基于位数的精确度,返回四舍五入后的结果。用0表示个位,用较大数表示较高位。
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • ceil

         final static Integer ceil(Integer x, Integer precision)

        精确到基于位数的不小于0的精确度,返回向下取整后的结果。用0表示个位,用较大数表示较高位。

      • ceil

         final static Long ceil(Long x, Integer precision)

        精确到基于位数的不小于0的精确度,返回向下取整后的结果。用0表示个位,用较大数表示较高位。

      • ceil

         final static Float ceil(Float x, Integer precision)

        精确到基于位数的精确度,返回向下取整后的结果。用0表示个位,用较大数表示较高位。

      • ceil

         final static Double ceil(Double x, Integer precision)

        精确到基于位数的精确度,返回向下取整后的结果。用0表示个位,用较大数表示较高位。

      • floor

         final static Integer floor(Integer x, Integer precision)

        精确到基于位数的不小于0的精确度,返回向上取整后的结果。用0表示个位,用较大数表示较高位。

      • floor

         final static Long floor(Long x, Integer precision)

        精确到基于位数的不小于0的精确度,返回向上取整后的结果。用0表示个位,用较大数表示较高位。

      • floor

         final static Float floor(Float x, Integer precision)

        精确到基于位数的精确度,返回向上取整后的结果。用0表示个位,用较大数表示较高位。

      • floor

         final static Double floor(Double x, Integer precision)

        精确到基于位数的精确度,返回向上取整后的结果。用0表示个位,用较大数表示较高位。

      • round

         final static Integer round(Integer x, Integer precision)

        精确到基于位数的不小于0的精确度,返回四舍五入后的结果。用0表示个位,用较大数表示较高位。

      • round

         final static Long round(Long x, Integer precision)

        精确到基于位数的不小于0的精确度,返回四舍五入后的结果。用0表示个位,用较大数表示较高位。

      • round

         final static Float round(Float x, Integer precision)

        精确到基于位数的精确度,返回四舍五入后的结果。用0表示个位,用较大数表示较高位。

      • round

         final static Double round(Double x, Integer precision)

        精确到基于位数的精确度,返回四舍五入后的结果。用0表示个位,用较大数表示较高位。