码迷,mamicode.com
首页 > 编程语言 > 详细

Java-API-Package:java.math

时间:2019-03-22 10:27:09      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:ted   contex   ike   addition   pes   bsp   win   order   back   

ylbtech-Java-API-Package:java.math

 

1.返回顶部
1、

Package java.math

Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal).

See: 
          Description

 

Class Summary
BigDecimal Immutable, arbitrary-precision signed decimal numbers.
BigInteger Immutable arbitrary-precision integers.
MathContext Immutable objects which encapsulate the context settings which describe certain rules for numerical operators, such as those implemented by the BigDecimal class.
 

 

Enum Summary
RoundingMode Specifies a rounding behavior for numerical operations capable of discarding precision.
 

 

Package java.math Description

Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). BigInteger is analogous to Java‘s primitive integer types except that it provides arbitrary precision, hence operations on BigIntegers do not overflow or lose precision. In addition to standard arithmetic operations, BigInteger provides modular arithmetic, GCD calculation, primality testing, prime generation, bit manipulation, and a few other miscellaneous operations. BigDecimal provides arbitrary-precision signed decimal numbers suitable for currency calculations and the like. BigDecimal gives the user complete control over rounding behavior, allowing the user to choose from a comprehensive set of eight rounding modes.

 

Since:
JDK1.1
2、
2.返回顶部
 
3.返回顶部
 
4.返回顶部
 
5.返回顶部
0、
1、
 
6.返回顶部
 
技术图片 作者:ylbtech
出处:http://ylbtech.cnblogs.com/
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

Java-API-Package:java.math

标签:ted   contex   ike   addition   pes   bsp   win   order   back   

原文地址:https://www.cnblogs.com/storebook/p/10576579.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!