|
From: | Joe Tusek |
Subject: | help - warning division by zero |
Date: | Fri, 25 Oct 2019 05:58:55 +0000 |
Hi,
This leaves a warning of division by zero in the Command Window when the “executed code” had not resulted in one. The code snippet has been crafted to generate the behaviour >> ifelse (1==1,0,1/0) warning: division by zero ans = 0 >> ifelse (1==0,0,1/0) warning: division by zero ans = Inf >> ifelse (1==0,0,1) ans = 1 Should this warning be supressed (so that it does not appear in the Command Window) when there was no active code that resulted in a division by zero? Regards, Joe Tusek
(BE MBA) |
[Prev in Thread] | Current Thread | [Next in Thread] |