什么号码二进制只能重新psented作为近似$ P $? [英] What number in binary can only be represented as an approximation?

查看:175
本文介绍了什么号码二进制只能重新psented作为近似$ P $?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在十进制(基数为10), 1/3 只能近似为0.33333重复。

In decimal (base 10), 1/3 can only be approximated to 0.33333 repeating.

什么数字是用二进制等效只能重新presented作为一种近似?

What number is the equivalent in binary that can only be represented as an approximation?

推荐答案

0.1就是这样一个例子,以及0.2

0.1 is one such example, as well as 0.2

这问题也类似于<一个href=\"http://stackoverflow.com/questions/1089018/why-cant-decimal-numbers-be-re$p$psented-exactly-in-binary\">this其他SO问题 ,已经有很好的答案。

This question is also similar to this other SO question, which already has very good answers.

这篇关于什么号码二进制只能重新psented作为近似$ P $?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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