unittest { assert(format!"%u"(-5) == "4294967291"); } The result is actually -5 which is not unsigned...
@berni44 created dlang/phobos pull request #7965 "std.format: New version for formatting integral values using writeAligned" fixing this issue: - Fix Issue 21817 - std.format: %u on integer does not print unsigned value https://github.com/dlang/phobos/pull/7965
dlang/phobos pull request #7965 "std.format: New version for formatting integral values using writeAligned" was merged into master: - 9e7ada3789ea1f29ea459d9201198e3310a127f3 by berni44: Fix Issue 21817 - std.format: %u on integer does not print unsigned value https://github.com/dlang/phobos/pull/7965