number format conversion

Discussion in 'JavaScript' started by kilo232003, Apr 13, 2007.

  1. #1
    Is there a way in javascript to format numbers (ie. in the form ###,###.00) but still keeping them as decimals (As opposed to converting to strings to add the ","), so that arithmetic functions can be used on them?

    Thanks
     
    kilo232003, Apr 13, 2007 IP
  2. lbalance

    lbalance Peon

    Messages:
    381
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you might want to make a hidden field to store the raw number and use the visible text field to show the formatted version.
     
    lbalance, Apr 13, 2007 IP