On 9/23/24 21:52, Craig Dillabaugh wrote:
Why does the following program:
\
import std.stdio;
int main(string[] args) {
uint Q = 7681;
writeln("Val = ", -1 % Q);
return 0;
}
\
Print
Val = 5568
Was hopin
On Monday, 23 September 2024 at 19:52:02 UTC, Craig Dillabaugh
wrote:
Why does the following program:
\
import std.stdio;
int main(string[] args) {
uint Q = 7681;
writeln("Val = ", -1 % Q);
return 0;
}
\
Print
Val
On Monday, 23 September 2024 at 20:02:25 UTC, Craig Dillabaugh
wrote:
On Monday, 23 September 2024 at 19:52:02 UTC, Craig Dillabaugh
wrote:
Why does the following program:
snip
Opps, sorry. I was expecting 7680 (not -1 or 5568).
After a bit of research I see this is the same behavior as C,
On Monday, September 23, 2024 1:52:02 PM MDT Craig Dillabaugh via Digitalmars-
d-learn wrote:
> Why does the following program:
>
> \
> import std.stdio;
>
> int main(string[] args) {
> uint Q = 7681;
> writeln("Val = ", -1 % Q);
> retur
On Monday, 23 September 2024 at 19:52:02 UTC, Craig Dillabaugh
wrote:
Why does the following program:
\
import std.stdio;
int main(string[] args) {
uint Q = 7681;
writeln("Val = ", -1 % Q);
return 0;
}
\
Print
Val