Package com.compomics.util.math
Class BigMathUtils
java.lang.Object
com.compomics.util.math.BigMathUtils
public class BigMathUtils extends Object
Utils for the manipulation of big numbers.
- Author:
- Marc Vaudel
-
Field Summary
Fields Modifier and Type Field Description static BigDecimal
E
Big decimal value of E.static BigDecimal
maxDouble
Big decimal value of the maximal value of a double.static BigDecimal
minNormalDouble
Big decimal value of the minimal normal value of a double.static BigDecimal
thousand
Big decimal value of 1000.static BigDecimal
two
Big decimal value of 2. -
Constructor Summary
Constructors Constructor Description BigMathUtils()
Empty default constructor -
Method Summary
Modifier and Type Method Description static BigDecimal
getLn10(MathContext mathContext)
Returns the value of ln(10) according to the mathContext.
-
Field Details
-
E
Big decimal value of E. -
two
Big decimal value of 2. -
thousand
Big decimal value of 1000. -
minNormalDouble
Big decimal value of the minimal normal value of a double. -
maxDouble
Big decimal value of the maximal value of a double.
-
-
Constructor Details
-
BigMathUtils
public BigMathUtils()Empty default constructor
-
-
Method Details
-
getLn10
Returns the value of ln(10) according to the mathContext.- Parameters:
mathContext
- the math context to use for the calculation- Returns:
- the value of ln(10)
-