Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

converting the values from Scientific E-notation

aajvory
5 - Atom

Hello Community,

I need your help with converting the values like:
8.02188E+15
1.802E+12
9.85622E+14
9.85622E+16

The best option seemed to me to use the TONUMBER() function in a formula tool and it converted numbers like this:
8.02188e+15
1802000000000
985622000000000
9.85622e+16

As you can see the numbers which contained +15 and +16 didn´t convert. I think that I've tried almost everything, but I don't know how to proceed. Can someone help me with this, please?

 

Thanks in advance.

4 REPLIES 4
DataNath
17 - Castor
17 - Castor

Hey @aajvory, there's a good article on this here: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Converting-Values-from-Scientific-E...

 

In your case, you could change the data type to a fixed length that will accommodate up to the largest of these:

 

DataNath_0-1669643731206.png

binuacs
21 - Polaris

@aajvory One way of doing this

 

binuacs_0-1669645266267.png

 

aajvory
5 - Atom

Hello guys,

 

thank you for your reply, both solutions worked. I found out that a problem was with the data source.

Ous1995
5 - Atom

How can i compute the size that should be put for fixed decimal ?

Labels
Top Solution Authors