什么比双重大? [英] What's bigger than a double?

查看:99
本文介绍了什么比双重大?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个比double更大的本地c ++变量类型?

float是7

double是15(当然取决于编译器)
$

Is there a native c++ variable type that's "bigger" than a double?
float is 7
double is 15 (of course depending on the compiler)
Is there anything bigger that's native, or even non-native?

推荐答案

C ++有 long double ,但不能保证它比任何一个简单的 double 更精确。在x86平台上,通常 double 是64位, long double 是64或80位

C++ has long double, but there is no guarantee that it's any more precise than a plain double. On an x86 platform, usually double is 64 bits, and long double is either 64 or 80 bits (which gives you 19 significant figures, if I remember right).

您的里程可能会有所不同,特别是如果您不在x86上。

Your mileage may vary, especially if you're not on x86.

这篇关于什么比双重大?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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