## BigDecimal movePointLeft() Method in Java

prerequisite : BigDecimal Basics The java.math.BigDecimal.movePointLeft(int n) method is used to move the decimal point of the current BigDecimal by n places to the left.… Read More »

## BigDecimal movePointRight() Method in Java

Prerequisite : BigDecimal Basics The java.math.BigDecimal.movePointRight(int n) method is used to move the decimal point of the current BigDecimal by n places to the right.… Read More »

## BigDecimal precision() Method in Java

The java.math.BigDecimal.precision() method returns the precision of this BigDecimal. The precision refers to the number of digits in the unscaled value. Syntax: public int precision()… Read More »

## BigDecimal plus() method in Java

The java.math.BigDecimal.plus() is an inbuilt method in java that returns a BigDecimal whose value is (+this), and whose scale is this.scale(). This method, which simply… Read More »

## BigDecimal scaleByPowerOfTen() method in Java

The java.math.BigDecimal.scaleByPowerOfTen(int n) is an inbuilt method on java that returns a BigDecimal whose numerical value is equal to (this * 10n). The scale of… Read More »

## BigDecimal round() Method in Java

The java.math.BigDecimal.round(MathContext m) is an inbuilt method in Java that returns a BigDecimal value rounded according to the MathContext settings. If the precision setting is… Read More »

## BigDecimal scale() Method in Java

The java.math.BigDecimal.scale() is an inbuilt method in java that returns the scale of this BigDecimal. For zero or positive value, the scale is the number… Read More »

## BigDecimal multiply() Method in Java

The java.math.BigDecimal.multiply(BigDecimal multiplicand) is an inbuilt method in java that returns a BigDecimal whose value is (this × multiplicand), and whose scale is (this.scale() +… Read More »

## Integer signum() Method in Java

The signum function is an odd mathematical function that extracts the sign of a real number. The signum function is also known as sign function.… Read More »

## BigDecimal doubleValue() Method in Java

The java.math.BigDecimal.doubleValue() is an in-built function which converts the BigDecimal object to a double. This function converts the BigDecimal to Double.NEGATIVE_INFINITY or Double.POSITIVE_INFINITY as appropriate… Read More »

## BigDecimal unscaledValue() in Java

The java.math.BigDecimal.unscaledValue() is an inbuilt method in java that returns a BigInteger whose value is the unscaled value of a BigDecimal value. The value computes… Read More »

## BigDecimal ulp() Method in Java

The java.math.BigDecimal.ulp() is an inbuilt method in Java that returns the size of an ulp(unit in the last place) of this BigDecimal. An ulp of… Read More »

## BigDecimal toBigIntegerExact() Method in Java

The java.math.BigDecimal.toBigIntegerExact() is an inbuilt method in java that converts this BigDecimal to a BigInteger, checking for lost information. An exception is thrown if this… Read More »

## BigDecimal toBigInteger() Method in Java

The java.math.BigDecimal.toBigInteger() is an inbuilt method in jav that converts this BigDecimal to a BigInteger. This conversion is analogous to the narrowing primitive conversion from… Read More »

## BigDecimal compareTo() Function in Java

The java.math.BigDecimal.compareTo(BigDecimal bg) method checks for equality of this BigDecimal and BigDecimal object bg passed as parameter. The method considers two equal BigDecimal objects even… Read More »