本文介绍了C ++中的无符号双精度型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么C ++不支持无符号双精度语法?
Why doesn't C++ support unsigned double syntax?
推荐答案
因为典型的浮点格式不支持无符号数。例如,请参阅。
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.
这篇关于C ++中的无符号双精度型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!