Java tutorial
//package com.java2s; public class Main { public static String keep2Point(double number) { return String.format("%.2f", number); } }