Formatting a Numeric value in 1000 Separater

  • Hi,

    How do i format a numeric value in 1000 separated value.

    eg. 10000.00 as 10,000.00

  • Sudarsan Srinivasan (11/14/2008)


    Hi,

    How do i format a numeric value in 1000 separated value.

    eg. 10000.00 as 10,000.00

    Where do you want to show formatted values?

    If you use front end application, use format function there


    Madhivanan

    Failing to plan is Planning to fail

  • I want that in the backend..

  • Sudarsan Srinivasan (11/14/2008)


    I want that in the backend..

    That is not the correct answer to my question

    Anyway

    declare @val decimal(12,2)

    set @val='10000.00'

    select convert(varchar(15),cast(@val as money),1)


    Madhivanan

    Failing to plan is Planning to fail

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply