https://issues.dlang.org/show_bug.cgi?id=10448 --- Comment #13 from Berni <dlang at croco-puzzle.com> --- As experts do not agree on the prefered result I think it's best to document, that NaNs will result in undefined behaviour. See https://github.com/dlang/phobos/pull/7181 for more details. --