This patch let -NaN can print the right sign like glibc do[1] :) Ref: [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=003c9895a89e71767ad64bafac1ca99622be2eb7