Talk:Arithmetic/Integer: Difference between revisions

From Rosetta Code
Content added Content deleted
(→‎Rexx: new section)
(→‎Rexx: added comment about sign of remainder, not quotient. -- ~~~~)
Line 10: Line 10:


should this "(sign from 2nd operand)" be "(sign from 1st operand)" --[[User:Walterpachl|Walterpachl]] 18:15, 26 August 2012 (UTC)
should this "(sign from 2nd operand)" be "(sign from 1st operand)" --[[User:Walterpachl|Walterpachl]] 18:15, 26 August 2012 (UTC)

: Yes, I wrongly referred to the quotient instead of the remainder. The sign of the result (for division) is taken from the 2nd operand (the divisor), the remainder's sign is taken from the 1st operand. I'll change the comment in the output to reflect this. -- [[User:Gerard Schildberger|Gerard Schildberger]] 18:30, 26 August 2012 (UTC)

Revision as of 18:30, 26 August 2012

Why does this task require user input?

Requiring user input seems like task cruft to me. --Showell 02:08, 26 February 2012 (UTC)

Python

think it's missing the exponentiation operator "**" requested by Task.--Billymac00 04:12, 3 January 2011 (UTC)

Rexx

should this "(sign from 2nd operand)" be "(sign from 1st operand)" --Walterpachl 18:15, 26 August 2012 (UTC)

Yes, I wrongly referred to the quotient instead of the remainder. The sign of the result (for division) is taken from the 2nd operand (the divisor), the remainder's sign is taken from the 1st operand. I'll change the comment in the output to reflect this. -- Gerard Schildberger 18:30, 26 August 2012 (UTC)