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

Convert Fixed Decimal to String or Extract all digits before decimal

hash_89
8 - Asteroid

I am trying to extract the all digits before decimal point from a fixed decimal column.

 

For eg, if the number is 132345.00000 , I need to extract "132345". How can I achieve this?

2 REPLIES 2
MelGibson
10 - Fireball

 This should resolve your issue.  Floor will remove the decimal part of the number, which leaves you with an integer.  

TONUMBER(FLOOR([YourColumnName])) IF YOUR INCOMING FIELD IS A NUMBER

TOSTRING(FLOOR([YourColumnName])) IF YOUR INCOMING FIELD IS A STRING

nagakavyasri
12 - Quasar

@hash_89 You can also find the position of decimal point 1st and consider the numbers on left:

 

Screenshot 2024-11-07 130052.png

Labels
Top Solution Authors