C ++中的无符号双 [英] Unsigned double in C++?

查看:105
本文介绍了C ++中的无符号双的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么C ++不支持无符号双重语法?

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

推荐答案

因为典型的浮点格式不支持无符号数字。例如, IEEE 754格式的列表

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 ++中的无符号双的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆