什么是二元精度? [英] What is Binary Precision?

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

问题描述

我正在阅读ORACLE中的数据类型。我知道BINARY_FLOAT,BINARY_DOUBLE使用二进制精度,这使得它们比NUMBER更有效,因为NUMBER使用小数精度。



请解释二进制精度。

I was reading about datatypes in ORACLE. I get to known that BINARY_FLOAT, BINARY_DOUBLE use binary precision which make them more efficient than NUMBER as NUMBER use decimal precision.

Please explain about binary precision.

推荐答案

二进制精度是计算机内存中浮点数和双精度数的通常表示形式(维基百科的IEEE浮点 [ ^ ])。机器硬件已针对使用进行了优化。

但请注意,数据库提供小数精度数据类型的原因(例如,参见
decimal32浮点格式页面[ ^ ])。
The binary precision is the 'usual' representation of float and doubles in computer memory ("IEEE floating point" at Wikipedia[^]). Machine hardware is optimized for using it.
However, please note, there's a reason why databases provide decimal precision data types (see, for instance, the "decimal32 floating-point format" page at Wikipedia[^]).


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

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