I want to read a double input (say, from Scanner) and print it as is on the console. My double input can vary in precision and scale.
public class SampleTests {
public static void main(String[] args) {
double d = 235345345345.234534;
System.out.printf("%f",d);
}
}
Output:
235345345345.234530
Expected:
235345345345.234534