Re: format a numeric values with commas
From: Steve Kass (skass_at_drew.edu)
Date: 09/22/04
- Next message: GW: "part removal"
- Previous message: hari: "format a numeric values with commas"
- In reply to: hari: "format a numeric values with commas"
- Next in thread: hari: "Re: format a numeric values with commas"
- Reply: hari: "Re: format a numeric values with commas"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 22 Sep 2004 09:54:01 -0400
declare @list_price numeric(20,6)
set @list_price = 1221512.34
select
convert(varchar(100),cast(@list_price as money),1)
Steve Kass
Drew University
hari wrote:
>hi,
> I have requirement.
> I want to format a numeric value with commas. is there
>any function to use in transact-sql query to do this.
>for example if the numeric value is 27519.37 then it
>should be formatted as 27,519.37
> if the numeric value is 1221512.34 then it should be
>formatted as 1,221,512.34
>
>regards,
>hari.
>
>
>
>
- Next message: GW: "part removal"
- Previous message: hari: "format a numeric values with commas"
- In reply to: hari: "format a numeric values with commas"
- Next in thread: hari: "Re: format a numeric values with commas"
- Reply: hari: "Re: format a numeric values with commas"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|