decimal number with comma (,) where required

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fariba123
    New Member
    • Oct 2006
    • 17

    decimal number with comma (,) where required

    requirement 1
    --------------------
    present data:12000.00(i n database)

    required data:12,000.00( display format)

    requirement 2
    --------------------
    there are some decimal data [decimal(10,2)] in database. i have to print the total value in the same format (i.e. 12.00). but i am getting the value as 12.

    please help me out

    thank you
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    See FORMAT() function in MySQL doc http://dev.mysql.com/doc/refman/4.1/...functions.html

    This is a MYSQL question, so thread moved to MySQL forum.

    Ronald :cool:

    Comment

    • fariba123
      New Member
      • Oct 2006
      • 17

      #3
      thanks for the help. it worked.

      Originally posted by ronverdonk
      See FORMAT() function in MySQL doc http://dev.mysql.com/doc/refman/4.1/...functions.html

      This is a MYSQL question, so thread moved to MySQL forum.

      Ronald :cool:

      Comment

      • ronverdonk
        Recognized Expert Specialist
        • Jul 2006
        • 4259

        #4
        You are welcome.

        Ronald :cool:

        Comment

        Working...