the solution
Quote:
|
replace(replace(rtrim(ltrim(replace(char(<FIELD_NA ME>), '0', ' '))), ' ', '0'), '.', '')
|
fails for negative numbers and numbers with digits after the decimal point.
Code:
number CHAR CAST REPLACE solution
10000,050 00010000.050 1000005
20000,000 00020000.000 20000
-4000,000 -00004000.000 -00004000