Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.math.BigDecimal;

public class Main {

    public static void main(String[] args) {

        BigDecimal bg = new BigDecimal("1234");

        // assign the converted value of bg to d
        Double d = bg.doubleValue();

        System.out.println(d);
    }
}