View Single Post
  #7 (permalink)  
Old 06-26-07, 07:22
ankursmart ankursmart is offline
Registered User
 
Join Date: Jun 2007
Posts: 3
tested solution

Hi
You can use the following expression to remove the leading/trailing spaces resulting from decimal to varchar conversion.

replace(replace(rtrim(ltrim(replace(char(<FIELD_NAME>), '0', ' '))), ' ', '0'), '.', '')

Regards
Ankur Jain

http://ankurjain.org
Reply With Quote