All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unlaxer.sample.calc.CalculationContext Maven / Gradle / Ivy

There is a newer version: 1.1.26
Show newest version
package org.unlaxer.sample.calc;

import java.math.RoundingMode;

public class CalculationContext{
	
	public enum Angle{
		RADIAN,DEGREE
	}
	
	public final int scale;
	public final RoundingMode roundingMode;
	public final Angle angle;
	
	public CalculationContext(int scale, RoundingMode roundingMode , Angle angle) {
		super();
		this.scale = scale;
		this.roundingMode = roundingMode;
		this.angle = angle;
	}
	
	public CalculationContext() {
		this(10,RoundingMode.HALF_UP , Angle.DEGREE);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy