<?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 ArcGIS Server Decimals elongated in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247236#M9513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone come across an issue where ArcGIS server changes the number it serves out? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my example. Just a normal boat infrastructure table record: &lt;/P&gt;&lt;P&gt;FACILITY_NAME: North Wall Ramp &lt;/P&gt;&lt;P&gt;FACILITY_TYPE: Boat Ramp&lt;/P&gt;&lt;P&gt;LATITUDE: -27.517116&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;------ this is float(126)&lt;/P&gt;&lt;P&gt;LONGITUDE: 153.006977&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;------ this is float(126)&lt;/P&gt;&lt;P&gt;OBJECTID: 254&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcMap will give me _EXACTLY_ that^ but when I publish it as a service ArcGIS server and query the endpoint it gives me this: &lt;/P&gt;&lt;P&gt;FACILITY_NAME: North Wall Ramp &lt;/P&gt;&lt;P&gt;FACILITY_TYPE: Boat Ramp&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LATITUDE: -27.517115999999999998 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LONGITUDE: 153.006976999999998&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OBJECTID: 254&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how longitude and latitude are not right on ArcGIS server but they are right in ArcMap? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does anyone know how to fix this? I believe this is a bug with ArcGIS server? Could ESRI get this on their to fix list if it can be confirmed as a bug? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle 11g&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.3.1&lt;/P&gt;&lt;P&gt;ArcMap 10.3.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 03:25:48 GMT</pubDate>
    <dc:creator>MatthewRyan2</dc:creator>
    <dc:date>2016-05-13T03:25:48Z</dc:date>
    <item>
      <title>ArcGIS Server Decimals elongated</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247236#M9513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone come across an issue where ArcGIS server changes the number it serves out? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my example. Just a normal boat infrastructure table record: &lt;/P&gt;&lt;P&gt;FACILITY_NAME: North Wall Ramp &lt;/P&gt;&lt;P&gt;FACILITY_TYPE: Boat Ramp&lt;/P&gt;&lt;P&gt;LATITUDE: -27.517116&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;------ this is float(126)&lt;/P&gt;&lt;P&gt;LONGITUDE: 153.006977&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;------ this is float(126)&lt;/P&gt;&lt;P&gt;OBJECTID: 254&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcMap will give me _EXACTLY_ that^ but when I publish it as a service ArcGIS server and query the endpoint it gives me this: &lt;/P&gt;&lt;P&gt;FACILITY_NAME: North Wall Ramp &lt;/P&gt;&lt;P&gt;FACILITY_TYPE: Boat Ramp&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LATITUDE: -27.517115999999999998 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LONGITUDE: 153.006976999999998&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;OBJECTID: 254&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See how longitude and latitude are not right on ArcGIS server but they are right in ArcMap? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Does anyone know how to fix this? I believe this is a bug with ArcGIS server? Could ESRI get this on their to fix list if it can be confirmed as a bug? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oracle 11g&lt;/P&gt;&lt;P&gt;ArcGIS Server 10.3.1&lt;/P&gt;&lt;P&gt;ArcMap 10.3.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 03:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247236#M9513</guid>
      <dc:creator>MatthewRyan2</dc:creator>
      <dc:date>2016-05-13T03:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Decimals elongated</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247237#M9514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect what you're seeing is a known issue associated with floating point arithmetic in python: &lt;A href="https://docs.python.org/2/tutorial/floatingpoint.html" title="https://docs.python.org/2/tutorial/floatingpoint.html"&gt;14. Floating Point Arithmetic: Issues and Limitations — Python 2.7.11 documentation&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just guessing here, but I suspect you're seeing this in server because python is being used to convert to result to a json object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 21:22:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247237#M9514</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2016-05-17T21:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Decimals elongated</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247238#M9515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very astute Bill! The issue mentioned in your post isn't only present in Python but other languages as well. For example there is this: &lt;A href="http://stackoverflow.com/questions/7127114/net-floating-point-comparison" title="http://stackoverflow.com/questions/7127114/net-floating-point-comparison"&gt;http://stackoverflow.com/questions/7127114/net-floating-point-comparison&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately the system test team will not see "our computers and programming languages are dumb" as an excuse to pass a test case &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Maybe there is a fix ESRI could do in storing the value as a string or something instead of a float to avoid a mismatch of the number in the database?&lt;/STRONG&gt; (Understanding that this is just a good guess as the problem and may not be the issue with further investigation)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 21:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247238#M9515</guid>
      <dc:creator>MatthewRyan2</dc:creator>
      <dc:date>2016-05-17T21:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Decimals elongated</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247239#M9516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right, it's not just a python issue.&amp;nbsp; It's just how computers work.&amp;nbsp; Here's a page describing the overall problem with a few ways to fix it: &lt;A href="http://floating-point-gui.de/" title="http://floating-point-gui.de/"&gt;The Floating-Point Guide - What Every Programmer Should Know About Floating-Point Arithmetic&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I generally round number value before displaying them in web applications.&amp;nbsp; I use 5 decimal places for lat/long fields and 3 (or fewer) decimal places for most other data types.&amp;nbsp; This is plenty accurate for the work my agency does.&amp;nbsp; I've been know to do the same when passing data back to the ArcGIS server as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 21:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247239#M9516</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2016-05-17T21:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Decimals elongated</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247240#M9517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/10519"&gt;Bill Daigle&lt;/A&gt;, you've got me convinced since I've been looking around and finding the symptoms match every single mismatch of the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Would still like this to be addressed by ArcGIS Sever&lt;/STRONG&gt; but will change the MXD to round at 6 decimal places. The number will still be mismatched to the database for decimals at 5 precision and will fail test cases but as least those at 6 should always be right since rounding is intelligent (I hope).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2016 22:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-decimals-elongated/m-p/247240#M9517</guid>
      <dc:creator>MatthewRyan2</dc:creator>
      <dc:date>2016-05-17T22:15:05Z</dc:date>
    </item>
  </channel>
</rss>

