how do i do this

Discussion in 'HTML & Website Design' started by pizzaman, Nov 9, 2007.

  1. #1
    i have some math calculation and i want to format the result so it is something like
    02.00 rather than 2
    12.20 rather than 12.2
     
    pizzaman, Nov 9, 2007 IP
  2. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #2
    Shouldn't this be in PHP or Javascript rather than the HTML forum?
     
    live-cms_com, Nov 9, 2007 IP
  3. pizzaman

    pizzaman Active Member

    Messages:
    4,053
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    90
    #3
    i do not know where it should go. i thought maybe there is an html code . but my site is in php
    i appreciate if anyone knows the answer to this
     
    pizzaman, Nov 9, 2007 IP
  4. live-cms_com

    live-cms_com Notable Member

    Messages:
    3,128
    Likes Received:
    112
    Best Answers:
    0
    Trophy Points:
    205
    Digital Goods:
    1
    #4
    You can't format numbers with HTML but it could be done with PHP. I'm not sure which function to use so you might be better off asking in the PHP forum.
     
    live-cms_com, Nov 9, 2007 IP