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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert to number with two decimals then as varchar 1

Status
Not open for further replies.

Chumley40

Programmer
Jan 24, 2005
71
US
I need to convert a numeric field to a varchar but don't want more than two decimal points to show. It is part of a case statement.
Right now I have:
When field.value is not null then RTRIM (CAST (field.value as varchar (245)))

How can I change that so that it returns a text number like 1.00 instead of 1.0000?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top