Unsigned double in C++?

lost3den picture lost3den · Mar 26, 2010 · Viewed 67.2k times · Source

Why doesn't C++ support unsigned double syntax?

Answer

unwind picture unwind · Mar 26, 2010

Because typical floating point formats don't support unsigned numbers. See, for instance, this list of IEEE 754 formats.

Adding a numerical format that isn't supported by common hardware just makes life difficult for compiler writers, and is probably not considered worth the effort.