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 Integer processCurreny(String value) {
        BigDecimal bd = new BigDecimal(value);
        bd.setScale(2, BigDecimal.ROUND_HALF_UP);
        bd = bd.multiply(new BigDecimal(100));
        return bd.intValue();
    }
}