PicoMite array questions


Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 11615
Posted: 08:51am 09 Aug 2023      

Can't think of any way to do this with the MATH commands or functions so you will need to just write a loop

General solution

max = 1.797693134862316e+308 ' or 9223372036854775807 if integer array
for i=bound(array(),0) to bound(array())
 if(array(i)>0 and array(i)<max then max = array(i)
next i
print max