I am getting a strange problem while parsing a double from String of length greater than 7.
For example: The String contains the value:
String str = '123456789'
When I run the following code:
double d = Double.parseDouble(str);
System.out.println(d);
The output is:
1.23456789E8
The value stored in the database is:
123456789.0000000000000000
The data type of column is decimal(40,16)
And there is no exception generated. Please let me know how can I handle it.