Online Java Compiler By
JavaTpoint.com
import java.math.BigDecimal; public class BigDecimalMovePointRightExample4 { public static void main(String[] args) { // Creating BigDecimal objects BigDecimal bdValue_1, bdFinalValue; //Assigning Value into BigDecimal object bdValue_1 = new BigDecimal("534.1254"); //it returns BigDecimal value with -6 points right bdFinalValue = bdValue_1.movePointRight(-6); // Displaying bdFinalValue values System.out.println("Final result after -6 move point right ="+bdFinalValue ); } }
Output