Formatting a Price

Results 1 to 2 of 2

Thread: Formatting a Price

  1. #1
    Join Date
    Dec 1969

    Default Formatting a Price

    Hi there!<BR><BR>I&#039;m getting values like 41.2 and 41.222 and 41. I&#039;d like to find a way to make them all the same format which would be 41.22 or 41.00. That is two numbers to the right of the decimal point (like a regular price).<BR><BR>Is there a simple way to format my values like this? Or could you point me in the right direction of the types of functions that I would use?<BR><BR>Thanks!!<BR>Andrea

  2. #2
    Join Date
    Dec 1969


    Look in the JavaScript FAQs on that site for simple JS-related questions like this. I guess the reason there are no JS FAQs here is simply because IRT.ORG has done such a good job of covering things.<BR><BR>

Posting Permissions

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