Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class Main {
    public static String roundUptoTwoDecimalUnits(String value) {
        return String.valueOf(new BigDecimal(value).setScale(2, RoundingMode.HALF_UP).doubleValue());
    }
}