Problem
I want to get double value same as input that we have given, but unexpectedly the output was:
Required value is : 9.999E7
public class DoubleDemo { public static void main(String[] args) { double value = 99999999.9; System.out.println("Required value is : " + value); } }
Solution
Here we can get exact output ,
Output is : 99999999.9
Output is : 99999999.9
No comments:
Post a Comment