Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
RAJ6
Contributor III
Contributor III

Convert scientific notation to decimal

Hi Talend Folks,

 

Convert scientific notation to decimal
  

I currently have a string field that contains scientific notation values. I would like to convert these to decimal.

Thanks in advance for your help!!

Example

Current format                           Needed Format

-1.9178464696202265E-2 -->     -0.01917846469620226500

 

 

Note: I have a urgent requirement. How to solve this issues?. Please Help me friends.

 Whether it is possible to convert format using encoding option when i import csv file.

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

You can use the BigDecimal class for this. The following code can be placed in a tJava component to demonstrate how it works....

 

String value = "5.1234E-09";
BigDecimal bd = new BigDecimal(value);

System.out.println(bd.toPlainString());

View solution in original post

1 Reply
Anonymous
Not applicable

You can use the BigDecimal class for this. The following code can be placed in a tJava component to demonstrate how it works....

 

String value = "5.1234E-09";
BigDecimal bd = new BigDecimal(value);

System.out.println(bd.toPlainString());