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