In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Help to get decimal numbers in char datatype field

Naga
8 - Asteroid

Hello,

 

Need some help with the below request. I tried to use tonumber() formula that is not getting the expected result. 

 

I have a string field, which holds a number and I need to add 2 decimal places only for the records that doesn't have any decimal and the rest to be kept as is.

 

InputOutput
99.6799.67
104104.00
101101.00
97.4497.44

 

Thanks
Naga

3 REPLIES 3
messi007
15 - Aurora
15 - Aurora

@Naga,

 

Please see below:

messi007_0-1612952541469.png

Attached the workflow.

Hope this helps!

 

Regards.

Naga
8 - Asteroid

Hi @messi007 ,

 

Fantastic and Thanks for your quick response...it worked very well.

 

Thanks

Naga

messi007
15 - Aurora
15 - Aurora

@Naga,

 

Happy to help and happy analyzing 🙂

 

Best Regards,

Labels
Top Solution Authors