$ 0 0 While the best way probably is to avoid my=0 alltogether, another workaround is the redefinition of the function b() so it catches the error and returns a dummy result or, as shown below, a NaN (Not-a-Number).