Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
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