I have a double value, for example:
double a = 12.1212123456543234;
I need to check the number of the digits after point and drop all digits from sixteenth. Here is my code to get digits after point:
String [] splitter = String.valueOf(a).split("\\.");
But even if the number of the digits after the point is bigger then 15, I always get 15 digits, and last digit (fifteenth) replaced by the wrong. please help me.