# Expression Divide By 0

**URL:** <https://forum.inductiveautomation.com/t/expression-divide-by-0/21434>\
**Category:** Ignition\
**Created:** [December 15, 2018, 4:31pm UTC](https://forum.inductiveautomation.com/t/expression-divide-by-0/21434 "2018-12-15T16:31:38Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 15, 2018, 7:47pm UTC](https://forum.inductiveautomation.com/t/expression-divide-by-0/21434/5 "2018-12-15T19:47:09Z")

</div>

`try()` wraps the expression evaluation in a try/catch and if an exception is caught uses the bailout value. Divide by `None` will throw an exception, divide by `0` is infinity, no exception thrown.

> [@Duffanator](#):
>
> Why not just check to see if it's zero?
> 
> if({[.]../Count/Count\_0\_} != 0,  
> {[.]../Temperatures/Temperatures\_0\_} / {[.]../Count/Count\_0\_},  
> 0)

Seems reasonable to me!

---

_[View the full topic](https://forum.inductiveautomation.com/t/expression-divide-by-0/21434)._
