Hi,
In a universe object, I am trying to convert a string to a number if it's all numeric. This is working fine - almost all of the time - using this formula:
DECODE( TRANSLATE(@Select(Class\Field),'_0123456789',' '), NULL, 'number','char')
So I am converting to 'number' or 'char'. If it returns 'number', I convert it to a number. The problem is when the value in the string is 100.00, for example. It thinks it's a string because of the decimal. How can I modify this logic to make a string, i.e. 100.00 evaluate so that I can convert it to a number?
Thanks!!
In a universe object, I am trying to convert a string to a number if it's all numeric. This is working fine - almost all of the time - using this formula:
DECODE( TRANSLATE(@Select(Class\Field),'_0123456789',' '), NULL, 'number','char')
So I am converting to 'number' or 'char'. If it returns 'number', I convert it to a number. The problem is when the value in the string is 100.00, for example. It thinks it's a string because of the decimal. How can I modify this logic to make a string, i.e. 100.00 evaluate so that I can convert it to a number?
Thanks!!