Post Reply 
help: divide a list into other two
05-19-2015, 10:06 PM
Post: #3
RE: help: divide a list into other two
(05-19-2015 10:01 PM)Didier Lachieze Wrote:  This should work:

Code:
flneg:=MIN(L1,0); flpos:=MAX(L1,0);
flneg:=remove(0,flneg);
flpos:=remove(0,flpos);

You need to do it in two steps: flneg:=remove(0,MIN(L1,0)) doesn't work.


Thank you!
quite ok, but there is a possibility that the original list has zeros among items (i.e {-100, 100, 100, 0, 0, 0, -50, -50, 100})

Any help for this?
TIA

salvo

∫aL√0mic (IT9CLU) :: HP Prime 50g 41CX 71b 42s 39s 35s 12C 15C - DM42, DM41X - WP34s Prime Soft. Lib
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: help: divide a list into other two - salvomic - 05-19-2015 10:06 PM



User(s) browsing this thread: 1 Guest(s)