September 01, 2015 General » Front page code samples | |||
|---|---|---|---|
| |||
...memory
The example with:
// RPN calculator
simply outputs:
-- No output --
The example with:
// Get your... | |||
August 31, 2015 Learn » Re: Reading and converting binary file 2 bits at a time | |||
|---|---|---|---|
| |||
...four", 2)); } writeln(Crumb1.sizeof, " ", Crumb2.sizeof); } outputs: 1 16 Is this correect behaviour? Andrew | |||
August 25, 2015 General » Re: Casting double to ulong weirdness | |||
|---|---|---|---|
| |||
...0 + x.epsilon; writeln(cast(ulong)(z)); } Outputs: 11 12 12 I leave it at... | |||
August 24, 2015 General » Re: Casting double to ulong weirdness | |||
|---|---|---|---|
| |||
...10.0)); double y = x * 10.0; writeln(std.math.trunc(y)); } Outputs: 11 12 | |||
August 24, 2015 General » Re: Casting double to ulong weirdness | |||
|---|---|---|---|
| |||
...cast(ulong)(x * 10.0)); writeln(cast(ulong)noop(x * 10.0)); } Outputs: 11 12 | |||
August 24, 2015 Issues » [Issue 14958] Casting a double to ulong sometimes produces wrong results | |||
|---|---|---|---|
| |||
...a", y, y2, cast(real)y3); } This outputs: 0xb.ffffffffffffep+0, 0xcp+0, 0xcp+0... | |||
August 24, 2015 General » Re: Casting double to ulong weirdness | |||
|---|---|---|---|
| |||
...a, %a", y, y2, cast(real)y3); outputs: 0xb.ffffffffffffep+0, 0xcp+0, 0xcp+0... | |||
August 24, 2015 General » Re: Casting double to ulong weirdness | |||
|---|---|---|---|
| |||
...c, then it outputs 12. If I link against testfp2.d, it outputs 11. I... | |||
August 24, 2015 General » Re: Casting double to ulong weirdness | |||
|---|---|---|---|
| |||
...a", 1.2);
writefln("%a", 12.0);
}
Outputs
0x1.3333333333333p+0
0x1.8p+3
Ali
| |||
August 23, 2015 Issues » [Issue 14952] New: Redundant REX.W before FSTP confuses Valgrind | |||
|---|---|---|---|
| |||
...void main()
{
auto x = f() / f();
}
////////////////////////
DMD outputs the following x86_64 opcodes:
55 push... | |||
Copyright © 1999-2021 by the D Language Foundation