<?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: Select by Attribute on Float values not returning any record in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303791#M3148</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;three things to check&lt;/P&gt;&lt;P&gt;1&amp;nbsp; are you typing the expression or selecting, the field name, the operand and then the value?&lt;/P&gt;&lt;P&gt;2&amp;nbsp; what about type Double, you said type Float which I never use so I can't confirm whether that is an issue&lt;/P&gt;&lt;P&gt;3&amp;nbsp; does the &amp;gt; or &amp;lt; operand work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Feb 2015 11:01:08 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2015-02-23T11:01:08Z</dc:date>
    <item>
      <title>Select by Attribute on Float values not returning any record</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303790#M3147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently I have been facing an issue. &lt;/P&gt;&lt;P&gt;I have a shapefile. In its attribute table, I have a field (Float datatype).&lt;/P&gt;&lt;P&gt;When I use select by attribute for a floating point (e.g. &amp;lt;Field_Name = &amp;lt;Value&amp;gt;), no records are returned (snapshot attached).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image1.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/64661_Image1.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue is occurring with the values with decimal values. &lt;/P&gt;&lt;P&gt;Adding those values into a text field is a workaround, but I want to understand what's causing this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS 10.2 for Desktop Basic. Windows 7 Ent. SP1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 10:26:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303790#M3147</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-02-23T10:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attribute on Float values not returning any record</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303791#M3148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;three things to check&lt;/P&gt;&lt;P&gt;1&amp;nbsp; are you typing the expression or selecting, the field name, the operand and then the value?&lt;/P&gt;&lt;P&gt;2&amp;nbsp; what about type Double, you said type Float which I never use so I can't confirm whether that is an issue&lt;/P&gt;&lt;P&gt;3&amp;nbsp; does the &amp;gt; or &amp;lt; operand work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 11:01:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303791#M3148</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-02-23T11:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attribute on Float values not returning any record</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303792#M3149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;1. Tried both typing the values as well as selecting the expression. Didn't work out.&lt;/P&gt;&lt;P&gt;2. Converting it to decimal has worked, but with certain workaround.&lt;/P&gt;&lt;P&gt;After creating a new Field (Double Datatype), I used Field Calculator, which gave me the following values&lt;/P&gt;&lt;P&gt;&lt;IMG alt="image 3.png" class="jive-image image-2" src="/legacyfs/online/64766_image 3.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Selecting by Attribute with the value 3.1 doen't work here. So I used the expression by clicking the value in Get Unique Values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the selection is done, I used Field Calculator on the selected records, and just typed 3.1 on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, If I type the value 3.1 in the expression, the records get selected. However Clicking on Get Unique Value gives a value (See snapshot)&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="64759" alt="image2.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/64759_image2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;But, if I manually enter 3.1, it still works.&lt;/P&gt;&lt;P&gt;3. And &amp;gt; &amp;lt; works on the float value, but nor the = sign.&lt;/P&gt;&lt;P&gt;So thanks a lot. Don't know that's the issue with Float.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 11:19:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303792#M3149</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2015-02-23T11:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Select by Attribute on Float values not returning any record</title>
      <link>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303793#M3150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is a floating point comparison issue.&amp;nbsp; It is &lt;STRONG&gt;&lt;EM&gt;NOT POSSIBLE&lt;/EM&gt;&lt;/STRONG&gt; to test equivalence on some values.&amp;nbsp; This is just the way binary computers (and IEEE floating-point representation) work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rather than testing any float value for equivalence, you must either test a range:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var &amp;gt; (value - threshold) AND var &amp;lt; (value + threshold)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; abs(var - value) &amp;lt; threshold&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you must scale and convert to integer (which probably isn't an option in this particular use case).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Feb 2015 13:57:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/select-by-attribute-on-float-values-not-returning/m-p/303793#M3150</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-02-23T13:57:09Z</dc:date>
    </item>
  </channel>
</rss>

