|Divide By Zero in Helix (Clarification)|
As with rounding, Helix uses two different rules when dividing by zero, depending on whether the values being used are Number ◊ or Fixed Point ◊ data type. This technote documents how Helix handles divide by zero for each data type.
|Divide By Zero: Scientific Result (Numbers)||
Number data (technically, floating point numbers) were introduced in the very first version of Helix and have always used scientific methodologies. In this case, the result of a divide by zero operation is Infinite.
|Divide By Zero: Financial Result (Fixed Point)||
Fixed Point data (technically, integers) were introduced much later in Helix’s history and have always used the financial rounding method. In this case, the result of a divide by zero operation is Undefined.
|Abacus Output Illustrated||
Here is the abacus output for 1 / 0 for Number and Fixed Point data types.