{"id":1621,"date":"2015-09-23T15:47:51","date_gmt":"2015-09-23T14:47:51","guid":{"rendered":"http:\/\/help.instantatlas.com\/report-builder-agol\/?page_id=1621"},"modified":"2015-09-23T15:47:51","modified_gmt":"2015-09-23T14:47:51","slug":"number-formats","status":"publish","type":"page","link":"https:\/\/help.reports.esriuk.com\/report-builder\/number-formats\/","title":{"rendered":"Number Formats"},"content":{"rendered":"<p>Generally you want to display numbers in a more friendly format than that found in your raw data.<\/p>\n<p>Report Builder gives you access to format strings enabling you to transform your numeric data\u00a0however you see fit. Below is a table of commonly used format strings.<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>Description<\/strong><\/td>\n<td><strong>Format<\/strong><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Millions<\/td>\n<td>\n<pre>0,,M<\/pre>\n<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Millions With Decimal<\/td>\n<td>\n<pre><span>0,,.0M<\/span><\/pre>\n<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>Format Strings General Reference<\/h2>\n<table class=\"settingsTable\">\n<thead>\n<tr>\n<th>Format<\/th>\n<th>Description<\/th>\n<th>Example<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>&#8220;N&#8221; &#8211; Number<\/td>\n<td>Integral and decimal digits, group separators, and a decimal separator with optional negative sign.<\/td>\n<td class=\"smallerText\">1234.567 (&#8220;N&#8221;, en-US) -&gt; 1,234.57<br \/>\n1234.567 (&#8220;N&#8221;, ru-RU) -&gt; 1 234,57<\/td>\n<\/tr>\n<tr>\n<td class=\"smallerText\">&#8220;C&#8221; &#8211; Currency<\/td>\n<td>A currency value &#8211; can be used with any number.<\/td>\n<td class=\"smallerText\">123.456 (&#8220;C&#8221;, en-US) -&gt; $123.46<br \/>\n123.456 (&#8220;C&#8221;, fr-FR) -&gt; 123,46 \u20ac<br \/>\n123.456 (&#8220;C&#8221;, ja-JP) -&gt; \u00a5123<\/td>\n<\/tr>\n<tr>\n<td>&#8220;G&#8221; &#8211; General<\/td>\n<td>The most compact of either fixed-point or scientific notation.<\/td>\n<td class=\"smallerText\">-123.456 (&#8220;G&#8221;, en-US) -&gt; -123.456<br \/>\n123.456 (&#8220;G&#8221;, sv-SE) -&gt; -123,456<br \/>\n-1.234567890e-25 (&#8220;G&#8221;, en-US) -&gt; -1.23456789E-25<br \/>\n-1.234567890e-25 (&#8220;G&#8221;, sv-SE) -&gt; -1,23456789E-25<\/td>\n<\/tr>\n<tr>\n<td>&#8220;P&#8221; &#8211; Percentage<\/td>\n<td>Number multiplied by 100 and displayed with a percent symbol.<\/td>\n<td class=\"smallerText\">1 (&#8220;P&#8221;, en-US) -&gt; 100.00 %<br \/>\n1 (&#8220;P&#8221;, fr-FR) -&gt; 100,00 %<br \/>\n-0.39678 (&#8220;P&#8221;, en-US) -&gt; -39.68 %<br \/>\n-0.39678 (&#8220;P&#8221;, fr-FR) -&gt; -39,68 %<\/td>\n<\/tr>\n<tr>\n<td>Custom<\/td>\n<td>Your custom number format. Certain characters have special meanings:<\/p>\n<ul>\n<li><code><span style=\"font-family: Courier New\">0<\/span><\/code> &#8211; forces a digit to display e.g. with a value of <code><span style=\"font-family: Courier New\">0.1<\/span><\/code> and a format of <code><span style=\"font-family: Courier New\">0.00<\/span><\/code> the <em>formatted value<\/em> would be <code><span style=\"font-family: Courier New\">0.10<\/span><\/code><\/li>\n<li><code><span style=\"font-family: Courier New\">#<\/span><\/code> &#8211; display a digit if present e.g. with a value of <code><span style=\"font-family: Courier New\">0.1<\/span><\/code> and a format of <code><span style=\"font-family: Courier New\">#.##<\/span><\/code> the <em>formatted value<\/em> would be <code><span style=\"font-family: Courier New\">.1<\/span><\/code><\/li>\n<li><code><span style=\"font-family: Courier New\">.<\/span><\/code> &#8211; display a decimal point if necessary e.g. with a value of <code><span style=\"font-family: Courier New\">1.1<\/span><\/code> and a format of <code><span style=\"font-family: Courier New\">#.#<\/span><\/code> the <em>formatted value<\/em> would be <code><span style=\"font-family: Courier New\">1.1<\/span><\/code> but with a format of <code><span style=\"font-family: Courier New\">#<\/span><\/code> the <em>formatted value<\/em> would be <code><span style=\"font-family: Courier New\">1<\/span><\/code><\/li>\n<li><code><span style=\"font-family: Courier New\">,<\/span><\/code> &#8211; display a digit separator if necessary e.g. with a value of <code><span style=\"font-family: Courier New\">1000<\/span><\/code> and a format of <code><span style=\"font-family: Courier New\">#,###<\/span><\/code> the <em>formatted value<\/em> would be <code><span style=\"font-family: Courier New\">1,000<\/span><\/code> in English or <code><span style=\"font-family: Courier New\">1 000<\/span><\/code> in Spanish<\/li>\n<\/ul>\n<p>More details on custom number formats can be found on <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/0c899ak8(v=vs.100).aspx\"><u><span style=\"color: #0066cc\">MSDN<\/span><\/u><\/a>.<\/td>\n<td>1000 (&#8220;#,###.#&#8221;, en-US) -&gt; 1,000<br \/>\n1000 (&#8220;#,###.#&#8221;, fr-FR) -&gt; 1 000<br \/>\n-3.9 (&#8220;#.#0&#8221;, en-US) -&gt; -3.90<br \/>\n-3.9 (&#8220;#.#0&#8221;, fr-FR) -&gt; -3,90<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Generally you want to display numbers in a more friendly format than that found in your raw data. Report Builder gives you access to format strings enabling you to transform your numeric data\u00a0however you see fit. Below is a table of commonly used format strings. Description Format Millions 0,,M Millions With Decimal 0,,.0M Format Strings [&hellip;]<\/p>\n","protected":false},"author":61,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1621","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/pages\/1621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/users\/61"}],"replies":[{"embeddable":true,"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/comments?post=1621"}],"version-history":[{"count":0,"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/pages\/1621\/revisions"}],"wp:attachment":[{"href":"https:\/\/help.reports.esriuk.com\/report-builder\/wp-json\/wp\/v2\/media?parent=1621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}