<div dir="ltr"><div>Hi All,<br></div><div>My concern is ignoring "0" when the num and it's relatives (dim_num*) functions do a counting when NOT evaluating a certain condition.  I do know that it is clearly written in the documents that "All numerical values <b>except for 0</b> evaluate to True."</div><div><br></div><div><span style="color:rgb(255,0,0)">My concern is that<b> if someone forgets about this "0" exception</b></span>, things could go very wrong: Here is how:</div><div>  <br></div><div><span style="color:rgb(255,0,0)">ab = fspan(0,30,20)<br>  print(num(ab)+" ... "+dim_num_n(ab,0)+" ... "+num(ab.ge.0)+" ... "+dimsizes(ab))</span></div><div><span style="color:rgb(255,0,0)">(0)     19 ... 19 ... 20 ... 20</span></div><div><span style="color:rgb(255,0,0)"><br></span></div><div><span style="color:rgb(255,0,0)">  cd = (/9,10,0,0,0,5,8./)<br>  print(num(cd)+" ... "+dim_num_n(cd,0)+" ... "+dimsizes(cd))</span></div><div><span style="color:rgb(255,0,0)">(0)      4 ... 4 ... 7</span></div><div><br></div><div></div><div>But these does not fail and give fatal error when used without any condition, although there is not so helpful warning message. The concern is that if these cannot provide right answer these must give error message suggesting that 0 values occurred while counting or something similar?</div><div><br></div><div><br></div><div>Cheers,</div><div>Rashed<br></div></div>