Skip to main content
100%

Indian Number System Format

✓ Published0🌍 Public
CCurran Kelleher
Last edited Jan 31, 2017
Created on Apr 30, 2016

This example demonstrates a custom JavaScript function that formats numbers according to the Indian Number System, using commas in the thousands, lakh, and crore groupings. The left column shows positive values, while the right column displays their negative counterparts, using D3.js version 3.5.5 to append formatted text to the page. The code handles both integer and decimal numbers, including edge cases like 10,000 and negative inputs, as noted in the README.

AI-generated description

A first stab at an implementation of an Indian Number System format. Inspired by d3-format issue:Indian Number System format.

Updated June 17, 2016 to fix cases of "10000" and negative numbers, thanks to contributions by @Harshit20051.

Built with blockbuilder.org

<!-- Start of SimpleHitCounter Code --> <div align="center"><a href="http://www.simplehitcounter.com" target="_blank"><img src="http://simplehitcounter.com/hit.php?uid=2097219&f=16777215&b=0" border="0" height="18" width="83" alt="web counter"></a></div> <!-- End of SimpleHitCounter Code -->
mit Licensed

Similar vizzes