We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Converting a string to double

Usamah22
8 - Asteroid

hello,

 

I have a string with numbers such as 1,432.22 which i want to convert to a double but when i do this using the select function the number becomes 1. I've put in a data cleanse before converting but that has removed the decimal point so i end up with 143222. How can i just get the number i want when converting to double?

 

Thanks

2 REPLIES 2
Emil_Kos
17 - Castor
17 - Castor

Hi @Usamah22,


You need to remove , from your numbers.


I have used this formula to make it happen:

 

Replace([Field1], ',', '')

 

Emil_Kos_0-1615391293611.png

 

Coakles
7 - Meteor

This worked for me! but why? why do you have to remove the comma? @Emil_Kos 

Labels
Top Solution Authors