Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number format

Status
Not open for further replies.

Variation180

Programmer
Joined
Apr 18, 2003
Messages
6
Location
US
This is prabably a dumb question and I'm prabably overlooking the obvious, but....

I need to format a number to a string format of "0000000.00". I have to have 7 characters to the left of the decimal and 2 to the right. I would do this in oracle with to_char(mynumbervalue,'0000000.00'), however the to_char() function in informatica apparently does not accept formatting on numbers. Does anyone know of a way to do this?

Thanks,
Chris

Charlotte, NC
 
The TO_CHAR works with numeric values as well:

TO_CHAR(100.61) is '100.61'

Use the LPAD function to pad to a fixed length...

T. Blom
Information analyst
tbl@shimano-eu.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top