Originally posted by: thorstenhirsch
Yes, I think going with a text field is a good decision here. I would also distinct between the whole number and the fraction, so let's give it a try:
= WORD(input, '.', 1) // take whole number as it is
+ '.'
// fraction is more complicate
+ FILLRIGHT(TRIMRIGHT(WORD(input, '.', 2), "0"), "0", 2)
So we only remove '0' on the right side of the fraction (4.999 would still be 4.999) and then we fill the fraction up to 2 digits with '0' (4.9 becomes 4.90).
P.S.: The WYSIWYG editor here is crappy.
#IBMSterlingTransformationExtender#DataExchange#IBM-Websphere-Transformation-Extender