package rounding;

import java.util.Scanner;

public class RoundingTest {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		double num = Double.parseDouble(scanner.nextLine());
		System.out.println("Origin:\t"+(num));
		
		double d1 = RoundByMathRound.round(num, 2);
		System.out.println("d1:\t" + d1);
		
		double d2 = RoundByDecimalFormat.round(num, 2);
		System.out.println("d2:\t" + d2);
		
		double d3 = RoundbyBigDecimal.round(num, 2);
		System.out.println("d3:\t" + d3);
		
		double d4 = RoundByStringHandling.round(num, 2);
		System.out.println("d4:\t" + d4);
		
		scanner.close();
	}
}