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

15TH OCTOBER, COUNTY HALL, LONDON

Join us at the Community Lounge.

Register Now

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog