Anonymous user
Arithmetic/Integer: Difference between revisions
m
→{{header|Batch File}}: provided details about quotient and remainder behavior
(Add Mercury.) |
m (→{{header|Batch File}}: provided details about quotient and remainder behavior) |
||
Line 212:
=={{header|Batch File}}==
{{works with|Windows NT|4 or later (includes Windows XP and onward)}}
<lang dos>
@echo off
set D=%A% / %B% & call :printC & rem truncates toward 0
set D=%A% %% %B% & call :printC & rem matches sign of 1st operand
exit /b
:printC
</lang>
=={{header|BBC BASIC}}==
|