I need to strip the zeros at the end of a number with type decimal (36,18). I tried the recipe from the answer: Remove trailing zeros in decimal value with changing length.