Six Stars

How to convert Scientific numbers to Int

Hi Folks,

 

I have scientific format number and I want to convert this to integer.

 

2.5e17 to normal number.

 

Regards,

Deepak

4 REPLIES
Forteen Stars TRF
Forteen Stars

Re: How to convert Scientific numbers to Int

Hi Deepack,

This a standard Java topic.

You can refer to this link https://stackoverflow.com/questions/2546147/java-convert-scientific-notation-to-regular-int or search for "java convert scientific notation to integer" using Google.


TRF
Forteen Stars TRF
Forteen Stars

Re: How to convert Scientific numbers to Int

Does this help?

If so, thank's to close the case by selecting the most usefull answer.
Kudos also accepted.


TRF
Six Stars

Re: How to convert Scientific numbers to Int

Hi Deepak,

You can use the following java statement.

 

Double.valueOf("2.5e17").longValue();

Forteen Stars TRF
Forteen Stars

Re: How to convert Scientific numbers to Int

Deepack1,
It's normal to ask questions when learning new things and this is the place for that.
It's also just normal to say thank's to people trying to help you for free and to give feedback regarding the proposed solutions.

TRF