{"id":381429,"date":"2026-10-06T04:24:18","date_gmt":"2026-10-06T04:24:18","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/sankhyaank\/"},"modified":"2026-10-06T04:23:46","modified_gmt":"2026-10-06T04:23:46","slug":"sankhyaank","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/sankhyaank\/","author":20291150,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"1.0.0","tested":"7.1.3","requires":"6.0","requires_php":"7.4","requires_plugins":null,"header_name":"Sankhyaank","header_author":"Rahul Tank","header_description":"Show numbers the Indian way \u2013 12,34,567, 12.35 lakh or 2 crore \u2013 with the rupee sign and Gujarati or Devanagari digits.","assets_banners_color":"d88f6f","last_updated":"2026-10-06 04:23:46","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/profiles.wordpress.org\/rahultank\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":252,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.0":{"tag":"1.0.0","author":"rahultank","date":"2026-10-06 04:23:46","revision":3729991}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3729991,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3729991,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3729991,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3729991,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[284623,284622,284621,71722,80],"plugin_category":[43],"plugin_contributors":[283620],"plugin_business_model":[],"class_list":["post-381429","plugin","type-plugin","status-publish","hentry","plugin_tags-crore","plugin_tags-lakh","plugin_tags-number-format","plugin_tags-rupee","plugin_tags-shortcode","plugin_category-customization","plugin_contributors-rahultank","plugin_committers-rahultank"],"banners":{"banner":"https:\/\/ps.w.org\/sankhyaank\/assets\/banner-772x250.png?rev=3729991","banner_2x":"https:\/\/ps.w.org\/sankhyaank\/assets\/banner-1544x500.png?rev=3729991","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/sankhyaank\/assets\/icon-128x128.png?rev=3729991","icon_2x":"https:\/\/ps.w.org\/sankhyaank\/assets\/icon-256x256.png?rev=3729991","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WordPress groups digits in threes (1,234,567). In India the same number is written 12,34,567, and large amounts are usually read in lakh and crore.<\/p>\n\n<p>Sankhyaank (\"sankhyaank\" means numeral in Hindi and Gujarati) adds a shortcode that writes a number in the Indian numbering system:<\/p>\n\n<ul>\n<li><code>[sankhyaank value=\"1234567\"]<\/code> \u2192 12,34,567<\/li>\n<li><code>[sankhyaank value=\"1234567\" style=\"words\"]<\/code> \u2192 12.35 lakh<\/li>\n<li><code>[sankhyaank value=\"20000000\" style=\"words\"]<\/code> \u2192 2 crore<\/li>\n<li><code>[sankhyaank value=\"250000\" currency=\"inr\"]<\/code> \u2192 \u20b92,50,000<\/li>\n<li><code>[sankhyaank value=\"1234567\" digits=\"gujarati\"]<\/code> \u2192 \u0ae7\u0ae8,\u0ae9\u0aea,\u0aeb\u0aec\u0aed<\/li>\n<li><code>[sankhyaank value=\"1234567\" digits=\"devanagari\"]<\/code> \u2192 \u0967\u0968,\u0969\u096a,\u096b\u096c\u096d<\/li>\n<\/ul>\n\n<h4>Shortcode options<\/h4>\n\n<ul>\n<li><code>value<\/code> \u2013 the number. Commas and spaces in it are ignored.<\/li>\n<li><code>style<\/code> \u2013 <code>digits<\/code> (default) for 12,34,567, or <code>words<\/code> for thousand, lakh and crore.<\/li>\n<li><code>decimals<\/code> \u2013 how many decimal places to show. By default the number keeps its own decimals, and <code>words<\/code> uses up to 2.<\/li>\n<li><code>digits<\/code> \u2013 <code>latin<\/code> (default), <code>gujarati<\/code>, <code>devanagari<\/code>, or <code>auto<\/code> to use Gujarati digits on a Gujarati site and Devanagari digits on a Hindi or Marathi site.<\/li>\n<li><code>currency<\/code> \u2013 <code>inr<\/code> to add the rupee sign.<\/li>\n<\/ul>\n\n<p>Large numbers stay exact, because the formatting works on the digits as text instead of converting them to a floating point number.<\/p>\n\n<p>The words thousand, lakh and crore can be translated, so a site in Gujarati or Hindi can show them in its own language once translations are available.<\/p>\n\n<h4>For developers<\/h4>\n\n<p>Use the same formatting in a theme or plugin:<\/p>\n\n<pre><code>echo esc_html( Sankhyaank::format( 1234567, array( 'style' =&gt; 'words' ) ) );\n<\/code><\/pre>\n\n<p>The plugin has no settings, stores nothing in the database and does not contact any external service.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>sankhyaank<\/code> folder to <code>\/wp-content\/plugins\/<\/code>, or install it from the Plugins screen.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Add the shortcode to a post, a page or a Shortcode block.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"what%20happens%20if%20the%20value%20is%20not%20a%20number%3F\"><h3>What happens if the value is not a number?<\/h3><\/dt>\n<dd><p>The value is shown as it was given, without formatting.<\/p><\/dd>\n<dt id=\"does%20it%20change%20the%20numbers%20wordpress%20shows%20elsewhere%3F\"><h3>Does it change the numbers WordPress shows elsewhere?<\/h3><\/dt>\n<dd><p>No. Only numbers inside the shortcode, or passed to <code>Sankhyaank::format()<\/code>, are formatted.<\/p><\/dd>\n<dt id=\"can%20it%20show%20amounts%20in%20words%2C%20such%20as%20%22twelve%20lakh%22%3F\"><h3>Can it show amounts in words, such as \"twelve lakh\"?<\/h3><\/dt>\n<dd><p>Not in this version. The <code>words<\/code> style writes the number in digits followed by the unit, such as 12 lakh.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>First release.<\/li>\n<\/ul>","raw_excerpt":"Show numbers the Indian way: 12,34,567, 12.35 lakh or 2 crore, with the rupee sign and Gujarati or Devanagari digits.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/381429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=381429"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rahultank"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=381429"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=381429"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=381429"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=381429"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=381429"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=381429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}