/* package whatever; // don't place package name! */ import java.util.*;import java.lang.*;import java.io.*;import java.math.*; /* Name of the class has to be "Main" only if the class is public. */class Ideone{ public static void main (String[] args) throws java.lang.Exception { // your code goes here BigDecimal bd = new BigDecimal(32.9110); System.out.println(Float.toString(bd)); }}
Standard input is empty
Main.java:15: error: incompatible types: BigDecimal cannot be converted to float System.out.println(Float.toString(bd)); ^ Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 1 error
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!