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