SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Decimal

  1. #1
    SitePoint Member
    Join Date
    May 2011
    Location
    Idaho
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Decimal

    Hello,
    I have a small problem with a short memory.
    I know it is simple I just can't find or remember it.

    I need my currency figures in my database to show both decimal spots i.e.

    12.10 not 12.1 or 12.00 not 12.0

    I am using decimal 8,2 but that isn't the whole answer.
    Any suggestions well be welcome..

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,245
    Mentioned
    59 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by CowboyTed View Post
    12.10 not 12.1 or 12.00 not 12.0
    this is the responsibility of the application program

    the database has the correct data -- the application formats it for cosmetic purposes
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Member
    Join Date
    May 2011
    Location
    Idaho
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DUH,... you are right.
    It needs to be in my request with my php code,...
    Thanks for jogging my memory,....


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •