Re: Help Please with numbers
- Posted by Jason Gade <jaygade at yahoo.com> Aug 01, 2005
- 623 views
cklester wrote: > > Rangel, Hebert Rogelio wrote: > > > > object r1 > > object r2 > > object r3 > > object r4 > > > > r1 = getText(EditText20) > > r2 = getText(Edittext21) > > r3 = r1 + r2 > > This is an argument for ESL's sum() function being able to handle all types... > > sequence r1, r2 > integer r3, r4 > atom total > > r1 = getText(EditText20) > r2 = getText(Edittext21) > r3 = 34 > r4 = 15 > total = sum({r1,r2}) > total += sum({r3,r4}) > > -=ck > "Programming in a state of EUPHORIA." > <a > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> > or just total = sum({r1, r2, r3, r4}) I first came up with the need for a sum() function when I was playing around with making a die-roller.===================================== Too many freaks, not enough circuses. j.