<?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: Arcade question: Round() function in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcade-question-round-function/m-p/1191169#M46896</link>
    <description>&lt;P&gt;It is called "floating point representation" an historic issue well covered.&lt;/P&gt;&lt;P&gt;you might want to round the multiplied value as well.&lt;/P&gt;&lt;P&gt;Python example, which you can emulate in arcade with concatenation&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"{} vs {}".format(round(math.pi, 2), round(math.pi * 10, 1))
'3.14 vs 31.4'&lt;/LI-CODE&gt;&lt;P&gt;,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 00:14:29 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-07-11T00:14:29Z</dc:date>
    <item>
      <title>Arcade question: Round() function</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-question-round-function/m-p/1191168#M46895</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I wrote a very simple expression and used the Round function. The output of the Round function&amp;nbsp; (i.e. 3.14) is correct, but when I multiply that output by a constant of 10, it is giving me the answer of&amp;nbsp;&lt;SPAN&gt;31.400000000000002 instead of 31.4. Is there a simple explanation for this? Did I miss something? Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Jul 2022 23:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-question-round-function/m-p/1191168#M46895</guid>
      <dc:creator>WingCheung1</dc:creator>
      <dc:date>2022-07-10T23:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade question: Round() function</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-question-round-function/m-p/1191169#M46896</link>
      <description>&lt;P&gt;It is called "floating point representation" an historic issue well covered.&lt;/P&gt;&lt;P&gt;you might want to round the multiplied value as well.&lt;/P&gt;&lt;P&gt;Python example, which you can emulate in arcade with concatenation&lt;/P&gt;&lt;LI-CODE lang="python"&gt;"{} vs {}".format(round(math.pi, 2), round(math.pi * 10, 1))
'3.14 vs 31.4'&lt;/LI-CODE&gt;&lt;P&gt;,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 00:14:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-question-round-function/m-p/1191169#M46896</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-07-11T00:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade question: Round() function</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcade-question-round-function/m-p/1191170#M46897</link>
      <description>&lt;P&gt;Thank you for the quick reply, Dan!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 00:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcade-question-round-function/m-p/1191170#M46897</guid>
      <dc:creator>WingCheung1</dc:creator>
      <dc:date>2022-07-11T00:26:04Z</dc:date>
    </item>
  </channel>
</rss>

