Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Mathematical and Numeric Functions

ZIDZ(A,B) Zero If Divided by Zero (otherwise A/B)

Scroll Prev Top Next More

Divide A by B.  If B is zero (actually smaller than 1E-6), then return 0.0. ZIDZ is normally used to express the special case where the limit of A/B, as B approaches 0, is 0.

Same as: XIDZ(A,B,0.0).

Units:        ZIDZ(units of A, units of B) --> units of A/B (i.e., same unit behavior as the division operator)

Examples

ZIDZ( 3, 4 ) is equal to 0.75.

ZIDZ( 3, 0 ) is equal to 0.

 

Sample model: XIDZ + ZIDZ.mdl in FunctionExamples