Arithmetic/Integer: Difference between revisions
Content added Content deleted
Jazzedpineda (talk | contribs) m (Fixed Golfscript implementation) |
(→{{header|Ruby}}: added divmod) |
||
Line 4,794: | Line 4,794: | ||
"Quotient: #{x.fdiv(y)}", # float |
"Quotient: #{x.fdiv(y)}", # float |
||
"Remainder: #{x%y}", # same sign as second operand |
"Remainder: #{x%y}", # same sign as second operand |
||
"Exponentiation: #{x**y}" |
"Exponentiation: #{x**y}", |
||
"Quotient: %d with Remainder: %d" % x.divmod(y)</syntaxhighlight> |
|||
=={{header|Run BASIC}}== |
=={{header|Run BASIC}}== |