Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

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

Labels (2)
4 Replies
TRF
Champion II

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
Champion II

Does this help?

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

jilanisyed
Creator

Hi Deepak,

You can use the following java statement.

 

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

TRF
Champion II

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.