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

0000012345.23 TO 12345.23?

Status
Not open for further replies.

UBfoolin

Programmer
Nov 29, 2001
32
US
It seems CAST() can only convert to integers. How can I strip the leading zeros from a varchar field?

If I use FORMAT("0000012345.23",2), I get 12,345.23 which would be great if I could stop the comma 1,000s separator.

How can I get the result I want, 12345.23?

Thanks,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top