Carl West wrote:

...
splitList = [[integer(pVal+[.5,-.5][1+(pVal>0)]),pVal-integer(pVal+[.5,-.5][1+(pVal>0)])],[0,0]][1+(pVal=0)]

Oh never mind, Colin's answer can be made into one line and it beats the pants off us:


splitList = [bitor(pVal,0),pVal- bitor(pVal,0)]

4x faster than mine which was 1.5x faster than Pedja's

--

Carl West
mailto:[EMAIL PROTECTED]
http://carl.west.home.comcast.net

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to