How about an array? parse Value 100 3 with x y qr=qr(x,y) Say x y qr[1] qr[2] exit qr: Use Arg dr,dd qr=.array~new q=dr%dd qr~append(q) qr~append(dr-q*dd) Return qr
> Glenn Knickerbocker <n...@bestweb.net> hat am 05.01.2023 21:13 geschrieben: > > > On 1/2/2023 3:38 PM, Jeremy Nicoll wrote: > > be better if the dual division (if it HAS to be done) was done within > > one method, or function (for Classic support), in the interpreter itself. > > Even if there isn't one instruction that will return both values, > multiplying is WAY faster than dividing, so instead of the second > division you'd want: > > remainder = dividend - quotient * divisor > > I wasn't sure I could think of a good way for a function to return the > two values--though I suppose they could just be blank-delimited. > > ¬R > > > > > _______________________________________________ > Oorexx-users mailing list > Oorexx-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/oorexx-users LG Walter _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users