Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.math.BigDecimal;

public class Main {

    public static double getBigDecimal_0(String strings) {
        double price = Double.parseDouble(strings);
        BigDecimal bg = new BigDecimal(price).setScale(0, BigDecimal.ROUND_UP);
        return bg.doubleValue();
    }
}