JavaScript Thousand Separator, Decimal Number Formatter

Cost-free and advertising-free. But a link to this page is appreciated.
Note: This service comes with NO GUARANTEES. No liability is assumed.

What is the JavaScript Thousand Separator, Decimal Number Formatter?

  • A simple JavaScript (DHTML) function for numerical formatting. It formats decimal numbers by inserting separator characters at the thousands positions. For example, 1234512345.12345 becomes 1,234,512,345.12345. You can also specify other separator and decimal point characters to suit your culture.
  • Feel free to download and modify the JavaScript function for your own needs, such as adapting it for your development. If your platform already supports numerical formatting, you should use that instead, as those are generally more robust.
  • For American and British systems, you can skip the second and third parameters. For other cultures, you should specify the separator and decimal point characters to guide the function. The function works fine for whole numbers too.



  • Here's the simple JavaScript Decimal number formatter (copy and paste in your Web page):
    <script language="JavaScript" src=""http://www.hashemian.com/js/NumberFormat.js"></script>
    <script language="JavaScript">
    document.write(FormatNumberBy3("1234512345.12345"));
    </script>
    The number is formatted as:

    Here is the version for most of Europe:

    <script language="JavaScript" src=""http://www.hashemian.com/js/NumberFormat.js"></script>
    <script language="JavaScript">
    document.write(FormatNumberBy3("1234512345,12345", ",", "."));
    </script>
    The number is formatted as:

    *** FREE from hashemian.com *** see descriptions
    JavaScript Countdown/Count-up Timer/Clock JavaScript Web Page Load Time JavaScript Web Page Commenting JavaScript Visitor IP Address/Host
    HTML Form Submission Tool Email/String Encoder/CAPTCHA Hit Counter; Page Counter Connection Probe
    Reverse Whois Browser Simulator/emulator My IP Address, Whoami Whois
    Mail Exchanger (MX Record) Lookup Search Engine Rankings JavaScript Thousand Separator Windows File Search Utility
    Atomic Clock/Current Time Short/Small URLs Atomic Fortune Teller Port Scanner
    Generate Password Google/Yahoo Maps Web Page Load Timer Ping
    HTML, URL, Decimal Encoding/Decoding Form Post Tester/Viewer Web Scratchpad/Notepad/Clipboard RSS/ATOM Web Widget
    HTML/CSS Color Test  


    Read Financial Markets  |   Home  |   Blog  |   Web Tools  |   News  |   Articles  |   FAQ  |   About  |   Contact

    © 2001-2009 Robert Vahid Hashemian
    Support the effort
    Liked this page?
    Please consider creating a link to it
    from your Web site.

    hashemian.com
    هاشمیان.com

     Home

     Blog

     Web Tools Add Free Web Tools custom Google Toolbar button (Requires Toolbar >V4)
    Usage

     News

     Articles

     FAQ

     About

     Contact

     Financial Markets Book
    Read Complete Book



    PET PRODUCTS
    Merial Frontline Plus Flea and Tick Control for Cats and Kittens


    KITCHEN
    Oxo Good Grips Flexible Vegetable Brush
    $4.99


    KITCHEN
    Dirt Devil 082700 Vision Turbo Canister Vacuum
    $159.99


    MUSIC
    High School Musical 3: Senior Year
    $18.98


    MUSIC
    Curtain Call
    $13.98

    more…




    Get Kindle, $259

    aStore - Hashemian.com on Amazon

    Visits: Powered by hashemian.com

     

     

     

     

     

    Search Hashemian.com





    Medion Laptop, 2200+ XP-M, DVD/CD-RW, Wireless
    $135.00
    Ends: Tue Nov 24, 2009 18:24:34 EST


    Dell Win XP Pro Reinstallation CD SP3 Recovery CD
    $17.99
    Ends: Tue Nov 24, 2009 18:25:11 EST


    JAGGED ALLIANCE 2 GOLD W/Unfinished Business NEW PC-XP
    $9.89
    Ends: Tue Nov 24, 2009 18:25:16 EST


    GATEWAY M305,2.5GHz,CDR/DVDR,XP HOME,PARTS NOTEBOOK
    $9.99
    Ends: Tue Nov 24, 2009 18:29:36 EST


    NEW WINDOWS XP PROFESSIONAL SP2 WITH PRODUCT KEY
    $0.99
    Ends: Tue Nov 24, 2009 18:31:08 EST

    more…