// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.math.*;

public class Decimal {
    public static void main(String[] args) {
        BigDecimal x = new BigDecimal("1.01");
        System.out.println(x);
        BigDecimal y = x.divide(new BigDecimal("10"), 2, RoundingMode.DOWN);
        System.out.println(y);
    }
}
