<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NumberFormat(round:x) won't display anything less than 3 decimals in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/numberformat-round-x-won-t-display-anything-less/m-p/406966#M37525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The proper format is this: &lt;/P&gt;&lt;P&gt;${MI_TO_STORE:NumberFormat(places:2)}&lt;/P&gt;&lt;P&gt;it is places not round.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Mar 2016 16:59:29 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-03-24T16:59:29Z</dc:date>
    <item>
      <title>NumberFormat(round:x) won't display anything less than 3 decimals</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/numberformat-round-x-won-t-display-anything-less/m-p/406965#M37524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know why using this construct in an infowindow won't allow me to display anything less than three decimal places?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the complete construct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;var resTemplate = new InfoTemplate();&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resTemplate.setTitle("Customer Residence");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; resTemplate.setContent(&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "&amp;lt;b&amp;gt;Distance to Store: &amp;lt;/b&amp;gt;${MI_TO_STORE:NumberFormat(round:2)} miles");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;I have tried using both 2 and 1 and even changing the format of my data layer before publishing it to 2 decimal places, but the infowindow insists that it give me three decimal places.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Thanks in advance for any suggestions or insights.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:52:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/numberformat-round-x-won-t-display-anything-less/m-p/406965#M37524</guid>
      <dc:creator>DonaldLund</dc:creator>
      <dc:date>2016-03-24T16:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: NumberFormat(round:x) won't display anything less than 3 decimals</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/numberformat-round-x-won-t-display-anything-less/m-p/406966#M37525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Donald,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; The proper format is this: &lt;/P&gt;&lt;P&gt;${MI_TO_STORE:NumberFormat(places:2)}&lt;/P&gt;&lt;P&gt;it is places not round.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:59:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/numberformat-round-x-won-t-display-anything-less/m-p/406966#M37525</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-03-24T16:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: NumberFormat(round:x) won't display anything less than 3 decimals</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/numberformat-round-x-won-t-display-anything-less/m-p/406967#M37526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. That did the trick. I'm almost sure I saw example code where the code listing used 'round', but 'places' did actually display the desired 2 decimal places.&lt;/P&gt;&lt;P&gt;Yes. Here's where I saw 'round' in use:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/widget_infowindowdates.html" title="https://developers.arcgis.com/javascript/jssamples/widget_infowindowdates.html"&gt;Format dates in an info window | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I'm not arguing that it should work, just saying a search on 'arcgis javascript api round' led me there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 17:17:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/numberformat-round-x-won-t-display-anything-less/m-p/406967#M37526</guid>
      <dc:creator>DonaldLund</dc:creator>
      <dc:date>2016-03-24T17:17:41Z</dc:date>
    </item>
  </channel>
</rss>

