[REBOL] Re: round-off error
From: larry::ecotope::com at: 4-Jul-2001 21:17
Oops, Sorry, I wasn't paying attention to the destructive actions of reverse. The correct answers are 99 for the sum of the numbers from left to right as given in the definition of janus. The large negative value is the sum when they are added from right to left. Another interesting result shows the constructed nature of the list is:>> sum: 0 foreach item sort janus [sum: sum + item] sum== 0 -Larry