Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.annotation.SuppressLint;

import java.math.BigDecimal;

public class Main {
    @SuppressLint("DefaultLocale")
    public static String getPriceString(double price) {
        BigDecimal a1 = new BigDecimal(Double.toString(price));
        return String.valueOf(a1.doubleValue());
    }
}