<?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: Divide by zero in a Calculate Field does not throw an error?! in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208217#M16076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also, confirm that the field does actually contain 0.0 and just doesn't look like zero because of field decimal point settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Dec 2015 08:22:06 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2015-12-18T08:22:06Z</dc:date>
    <item>
      <title>Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208215#M16074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You learn something new every day in GIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I open a shapefile attribute table, select an attribute, and use the field calculator to populate the field with an expression such as...&lt;/P&gt;&lt;P&gt;attributeX / 0&lt;/P&gt;&lt;P&gt;I get an error &lt;EM&gt;all calculated values were invalid, no rows were updated&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But&lt;/P&gt;&lt;P&gt;attributeX / attributeY returns no error even if values in attributeY have zero values, In fact, it populates those values with zero values.&lt;/P&gt;&lt;P&gt;This is disturbing. &lt;/P&gt;&lt;P&gt;If I do this same test in a geodatabase I get null values for the zero division rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that there are data structure limitations.&amp;nbsp;&amp;nbsp; Shapefile fields are not nullable... but the shapefile example ought to give some warning!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 00:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208215#M16074</guid>
      <dc:creator>GerryGabrisch</dc:creator>
      <dc:date>2015-12-18T00:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208216#M16075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it is unfortunate that you have to keep track of the math you are performing to assess appropriate values. You can use a field name to reflect the situation ... AdivBor_0 ( col A divided by B or 0 if possible) or use a code block block and specify number as the output like by comparing 0.0 to a small number to yield an improbably large value&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; a = 1
&amp;gt;&amp;gt;&amp;gt; b = 0.0
&amp;gt;&amp;gt;&amp;gt; small= 9.9e-99
&amp;gt;&amp;gt;&amp;gt; a/(max(b,small))
1.0101010101010101e+98&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:17:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208216#M16075</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T10:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208217#M16076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;also, confirm that the field does actually contain 0.0 and just doesn't look like zero because of field decimal point settings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 08:22:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208217#M16076</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-18T08:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208218#M16077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not a python expert, but I think you can add an "if" statement. So if the value of "attribute Y" was zero it will print "Error" in the field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 16:26:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208218#M16077</guid>
      <dc:creator>TarekKandakji</dc:creator>
      <dc:date>2015-12-18T16:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208219#M16078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not in the field calculator, it needs to return a value to the field&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 16:43:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208219#M16078</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-18T16:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208220#M16079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So can't an "if" statement do the task somehow?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 16:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208220#M16079</guid>
      <dc:creator>TarekKandakji</dc:creator>
      <dc:date>2015-12-18T16:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208221#M16080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Tarek,&lt;/P&gt;&lt;P&gt;You could do the math using an arcpy cursor.&amp;nbsp; Python would throw an error that you could catch. Still though, you would need to assign some value to the record in the shapefile that had a zero division error.&lt;/P&gt;&lt;P&gt;Another reason to use a geodatabase, I guess.&amp;nbsp; At least you end up with a null value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 16:59:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208221#M16080</guid>
      <dc:creator>GerryGabrisch</dc:creator>
      <dc:date>2015-12-18T16:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208222#M16081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Catch ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is why I like to stick with C or VB.&amp;nbsp; I have confidence it will catch errors or inconsistencies such as you noted.&amp;nbsp; In fact when I have to deal with Null values, I avoid python like a plague.&amp;nbsp; I still have no confidence that it can trap and deal with null values.&amp;nbsp; I still find situations where Python did not catch or trap (or more correctly I did not envision all the possibilities where a null value is described).&amp;nbsp; I can'd give up isNull() ..... old, lazy and set my ways and now I have to worry about dividing by zero!&amp;nbsp;&amp;nbsp; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good catch -- learned something else today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 17:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208222#M16081</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2015-12-18T17:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208223#M16082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh.. I see! I am sorry I couldn't help! Using geodatabse, as you said, will at least give you null values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 17:05:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208223#M16082</guid>
      <dc:creator>TarekKandakji</dc:creator>
      <dc:date>2015-12-18T17:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208224#M16083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;actually it is not python that can't catch nulls...that is totally wrong.&amp;nbsp; The problem lies in the fact that shapefiles aren't nullable which means that they have to have a value in the field.&amp;nbsp; Python wouldn't have emerged as one of the preferred languages of choice for scientific computing if it couldn't catch division by zero. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADDENDUM&lt;/P&gt;&lt;P&gt;If you want to read up on null and related issues in doing field calculations, have a read through&lt;/P&gt;&lt;P&gt; &lt;A href="https://community.esri.com/migration-blogpost/55265"&gt;Before I forget ... # 18 ... Those pesky &amp;amp;lt;null&amp;amp;gt; things...&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 19:10:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208224#M16083</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-18T19:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208225#M16084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan I agree with your statements -- It is more of Laziness on my part.&amp;nbsp; I would rather use a function isNull rather than a def for trapping all possibilities of nullness.&amp;nbsp; In the same hand, knowing a division by zero will halt my program/script in its tracks.&amp;nbsp; Pure Laziness!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I use python on databases outside of GIS/No shapefiles and still I have problems with Nulls!&amp;nbsp; Yes they are Pesky!&amp;nbsp; One day we will avoid Null in database design and this issue will go away (and replaced by with some other pesky issue) --- Keeping us in business.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 14:59:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208225#M16084</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2015-12-21T14:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208226#M16085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes.. it would be useful to implement the concept of a mask in database design, effectively excluding any operation from including records that are masked, unless you want to deal with the masked records explicitly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 19:29:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208226#M16085</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-21T19:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208227#M16086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gerry, maybe you can change this to a Discussion since there is obviously no answer that suits all situations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 21:59:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208227#M16086</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-21T21:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208228#M16087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having trouble with Python when dividing by zero?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp; File "&amp;lt;pyshell#0&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5/0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;ZeroDivisionError: integer division or modulo by zero&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;Better get Chuck Norris to help:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def chuck_norris(a, b):
&amp;nbsp;&amp;nbsp;&amp;nbsp; try:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = a/b
&amp;nbsp;&amp;nbsp;&amp;nbsp; except ZeroDivisionError:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (a == 0):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = float('nan')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; elif (a &amp;gt; 0):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = float("inf")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value = float("-inf")
&amp;nbsp;&amp;nbsp;&amp;nbsp; return value&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208228#M16087</guid>
      <dc:creator>ChrisSmith7</dc:creator>
      <dc:date>2021-12-11T10:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208229#M16088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was always an Arnold fan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;def arnold(a,b):
&amp;nbsp;&amp;nbsp;&amp;nbsp; import numpy as np
&amp;nbsp;&amp;nbsp;&amp;nbsp; return (max(np.inf,a*b/1.))
print("I'll be back in... {!r:}".format(arnold(5,0)))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208229#M16088</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T10:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208230#M16089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is one hell of a spinning back kick ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still goes to my point (my laziness) that this should be embedded within the language and not have to be manually accounted for (and thought of).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that I have been spoiled by other 4th generation languages and have the expection that python honors certain expected rules.&amp;nbsp; When it does not intrinsically, I am left with no/lesser confidence.&amp;nbsp; Again I am beating a dead horse... either jump on the train or get left behind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def Live_Long_and_Prosper(vulcan)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "Needs of the Many outweigh the Needs of the few"&lt;/P&gt;&lt;P&gt;print Live_Long_and_Prosper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 14:41:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208230#M16089</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2015-12-23T14:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208231#M16090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI for the 5th generation... in python 3.x that would be&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14508849998945112 jive_macro_code jive_text_macro" data-renderedposition="50_8_912_16" jivemacro_uid="_14508849998945112"&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;print("always a lesson...{}".format(Live_Long_and_Prosper() )&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 15:35:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208231#M16090</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-23T15:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Divide by zero in a Calculate Field does not throw an error?!</title>
      <link>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208232#M16091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOL!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Dec 2015 20:19:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/divide-by-zero-in-a-calculate-field-does-not-throw/m-p/208232#M16091</guid>
      <dc:creator>TedKowal</dc:creator>
      <dc:date>2015-12-23T20:19:53Z</dc:date>
    </item>
  </channel>
</rss>

