Question
After changing the decimal number to string in Tableau Desktop/Prep, the number of decimal places is very large for some numbers.
For example, the String type number shows [.99999999999999999994] or [.0000000000000001] as a string.
After changing the decimal number to string in Tableau Desktop/Prep, the number of decimal places is very large for some numbers.
For example, the String type number shows [.99999999999999999994] or [.0000000000000001] as a string.
STR(INT([Value])) + "." + RIGHT(STR([Value]*100),2)Please change the numbers in the last lines to set the number of decimals. e.g. for 3 numbers, please use [RIGHT(STR([Value]*1000),3)].