How to convert Scientific numbers to Int

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

Fifteen Stars TRF
Fifteen 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
Fifteen Stars TRF
Fifteen 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();

Fifteen Stars TRF
Fifteen 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

What’s New for Talend Spring ’19

Join us live for a sneak peek!

Sign up now

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch

Downloads and Trials

Test drive Talend's enterprise products.

Downloads

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Download