How can I truncate 6.280369834735099E-16 to double in Java? -


how can 1 truncate 6.280369834735099e-16 000000000000000628 in java?

have tried this?

double d =  6.280369834735099e-16;  numberformat formatter = new decimalformat("#.###################");    string f = formatter.format(d);   

Comments

Popular posts from this blog

Java 8 + Maven Javadoc plugin: Error fetching URL -

android - How to delete or change the searchview icon inside the SearchView actionBar? -

c++ - Msgpack packing bools bug -