Arithmetic/Integer: Difference between revisions

Content added Content deleted
(GDScript tool script solution)
m (→‎{{header|GDScript}}: Rounding/remainder annotations)
Line 2,358: Line 2,358:
difference = a - b
difference = a - b
product = a * b
product = a * b
integer_quotient = a / b
integer_quotient = a / b # Rounds towards 0
remainder = a % b
remainder = a % b # Matches the sign of a
exponentiation = pow(a, b)
exponentiation = pow(a, b)
</syntaxhighlight>
</syntaxhighlight>