Java tutorial
import java.math.BigDecimal; public class Main { public static void main(String[] args) { BigDecimal bg1 = new BigDecimal("123.23"); BigDecimal bg2 = new BigDecimal("12323"); BigDecimal bg3 = bg1.movePointRight(3); // 3 places right BigDecimal bg4 = bg2.movePointRight(-2);// 2 places left System.out.println(bg3); System.out.println(bg4); } }