Re: Help Please with numbers
- Posted by Jason Gade <jaygade at yahoo.com> Aug 01, 2005
- 602 views
Jason Gade wrote: > > 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}) Oops, sorry. I guess that you meant that r1 and r2 are text representations of numbers. How would sum know that? > > ===================================== > Too many freaks, not enough circuses. > > j. > ===================================== Too many freaks, not enough circuses. j.