data of more than 7 digits is rounded up by 1
I have a small doubt , when using 'Float', data of more than 7 digits is rounded up by 1.
piece of code is given below:
String _val = "51300123";
Float f = new Float (_val);
I am getting output as 5.1300124E7 .
But when i tried with 7 digits ie; when put _val = "5130012"; getting o/p as 5130012.0
This problem occurs only when there are more than 7 digits.
Can anyone help me in resolving this. I need to get the exact Output without rounding..
It is Urgent