Java tutorial
import java.math.BigDecimal; public class Main { public static void main(String[] args) { Long l = new Long("12345678"); BigDecimal bg = BigDecimal.valueOf(l); System.out.println(bg); } }