Thread: About decimal

    #1
  1. A Change of Season
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    3,247
    Rep Power
    220

    About decimal


    Hello;

    How come it's so hard to find exactly decimal values are?

    Decimal(6,2)

    Does this mean it can be 6 digits with 2 decimal points?

    For example:

    1234.56

    ?
  2. #2
  3. Maddening Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,453
    Rep Power
    9645
    If you can understand things like "number of digits" and "to the right of the decimal point" then the documentation would have been a great place to look.

    Comments on this post

    • gaming77 agrees
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2007
    Location
    US
    Posts
    18
    Rep Power
    0
    Yes, 6 digits w/ 2 decimal points. That is correct.

    Even -1234.56 will work.

  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2016
    Location
    Lakewood, WA
    Posts
    219
    Rep Power
    17
    These are not strictly speaking PHP questions...
  8. #5
  9. Maddening Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    16,453
    Rep Power
    9645
    Tea has a habit of posting questions in here regardless of whether they're related to PHP. I gave up trying to correct him.

IMN logo majestic logo threadwatch logo seochat tools logo