Data types such as
float and
double have limited precision. The type
float has a precision of about 6 or 7 decimal digits. There's no way to store a number in a
float that has more than 7 significant digits.
Are your numbers really floating-point values, or are they integers? If they are integers, you could just use
int or
long instead of
float, but these integer types ofcourse also have limits. If you need to store floating-point numbers with unlimited precision, use BigDecimal; if you need to store integer numbers with unlimited precision, use BigInteger. For example:
Shihad Salam wrote:
It is Urgent
Please
EaseUp