https://issues.dlang.org/show_bug.cgi?id=20535
Bolpat <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from Bolpat <[email protected]> --- Reading https://dlang.org/phobos/std_format.html#formattedWrite section 'b','d','o','x','X': > [...] If the argument is a signed type and the FormatChar is d it is > converted to a signed string of characters, otherwise it is treated as > unsigned. [...] So, clearly, the intended result for negative numbers is not a minus sign and magnitude, but two's complement. --
