<?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: &amp;quot;FLOOR&amp;quot; numeric function in Field Calculator in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272628#M21053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for your answers and apologies for this belated reply, got some troubles with my account. All is working well!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jul 2012 01:57:32 GMT</pubDate>
    <dc:creator>PaulineAmez</dc:creator>
    <dc:date>2012-07-02T01:57:32Z</dc:date>
    <item>
      <title>&amp;quot;FLOOR&amp;quot; numeric function in Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272625#M21050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I???ve encountered some difficulties to enter the ???FLOOR??? numeric function into the Field Calculator. I???m guessing my syntax is wrong but don???t know which part is wrong (e.g. a misplaced bracket, something missing, etc.)? Here is what I wrote in the field calculator: Floor ([ELEVATION], 5). The message I received is ???There was a failure during processing, check the Geoprocessing Results window for details.??? I did check and I found the ERROR 999999 and the type mismatch: ???Floor???. Does anyone know how to write this function correctly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 09:43:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272625#M21050</guid>
      <dc:creator>PaulineAmez</dc:creator>
      <dc:date>2012-06-20T09:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: "FLOOR" numeric function in Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272626#M21051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There's no &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;Floor() &lt;/SPAN&gt;&lt;SPAN&gt;function in VBScript. (refer to &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/3ca8tfek%28v=vs.85%29.aspx"&gt;Functions (VBScript)&lt;/A&gt;&lt;SPAN&gt; reference)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;Int() &lt;/SPAN&gt;&lt;SPAN&gt;or preferably &lt;/SPAN&gt;&lt;SPAN style="font-family:Courier New;"&gt;Fix()&lt;/SPAN&gt;&lt;SPAN&gt; functions instead which work like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;MyNumber = Int(99.8)&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Returns 99.&lt;BR /&gt;MyNumber = Fix(99.2)&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Returns 99.&lt;BR /&gt;MyNumber = Int(-99.8)&amp;nbsp;&amp;nbsp; ' Returns -100.&lt;BR /&gt;MyNumber = Fix(-99.8)&amp;nbsp;&amp;nbsp; ' Returns -99.&lt;BR /&gt;MyNumber = Int(-99.2)&amp;nbsp;&amp;nbsp; ' Returns -100.&lt;BR /&gt;MyNumber = Fix(-99.2)&amp;nbsp;&amp;nbsp; ' Returns -99.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 09:56:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272626#M21051</guid>
      <dc:creator>MarcinGasior</dc:creator>
      <dc:date>2012-06-20T09:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: "FLOOR" numeric function in Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272627#M21052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to use floor in the field calculator, select the Python parser, and use the expression:&lt;/SPAN&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;math.floor(!Elevation!)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 15:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272627#M21052</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-06-20T15:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: "FLOOR" numeric function in Field Calculator</title>
      <link>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272628#M21053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot for your answers and apologies for this belated reply, got some troubles with my account. All is working well!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jul 2012 01:57:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/amp-quot-floor-amp-quot-numeric-function-in-field/m-p/272628#M21053</guid>
      <dc:creator>PaulineAmez</dc:creator>
      <dc:date>2012-07-02T01:57:32Z</dc:date>
    </item>
  </channel>
</rss>

