peter@ficc.ferranti.com (Peter da Silva) (02/27/91)
In article <3439.27ca4e40@iccgcc.decnet.ab.com> herrickd@iccgcc.decnet.ab.com (daniel lance herrick) writes: > when what I want is > (q, r) = dividend divided by divisor Than you need a different programming language. Wasn't there a stack oriented language called "POP-2" or something that would allow this with this sort of syntax? Or you could always use Forth: dividend divisor /MOD q ! r ! (I may have got the order of the results mixed up) (followups to comp.lang.misc) -- Peter da Silva. `-_-' peter@ferranti.com +1 713 274 5180. 'U` "Have you hugged your wolf today?"
jvm@hpfcso.FC.HP.COM (Jack McClurg) (03/05/91)
How about COBOL? DIVIDE a BY b GIVING c REMAINDER d.