SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2003
    Location
    ontario
    Posts
    38
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    formatting number

    How do I format the following to omit the decimal places to the right of the decimal? (ex. 10.00 should be 10)

    Code:
    document.writeln(''+top.cart.alterError(subtotal)+'');

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2003
    Location
    USA
    Posts
    173
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    .
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    2 | 3 | 4 | 5 | 6 | 7 | 8 | 9


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
  •