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

Alteryx Designer Desktop Discussions

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

All the value in two decimals

Sshasnk
8 - Asteroid

I want to convert the number to 2 decimal places, for every number

 

Number
123
123.456
123.00
456.01

 

NumberNumber_1
123123.00
123.456123.45
123.00123.00
456.01234456.01
4 REPLIES 4
DavidSkaife
13 - Pulsar

Hi @Sshasnk 

 

Here is a way of doing it in one tool, use the Select tool to change the type to FixedDecimal:

 

DavidSkaife_0-1672826826174.png

 

 

 

Christina_H
14 - Magnetar

You need to convert the number to a string: ToString([Number],2)

Christina_H_0-1672827036763.png

grazitti_sapna
17 - Castor

@Sshasnk , If the data type is number then you can change it to fixed decimal and specify the precision and scale of the column. Below are more details on the fixed decimal data type usage:

 

https://help.alteryx.com/20223/designer/data-types#:~:text=Alteryx%20defaults%20a%20Fixed%20Decimal,....

Sapna Gupta
Sarreddy
9 - Comet

@Sshasnk 

Sarreddy_0-1672829493743.png

 

Labels