Unsigned double in C++?

前端 未结 3 956
醉酒成梦
醉酒成梦 2021-02-01 11:50

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

3条回答
  •  太阳男子
    2021-02-01 12:41

    C++ doesn't support unsigned floating point types because most floating point hardware doesn't support unsigned floating point types. Some graphics cards do work with unsigned floating point, but it's generally internal, not really visible to a program or user.

提交回复
热议问题