chapter_data_structure/number_encoding/ #500
Replies: 58 comments 73 replies
-
K神写的非常好,我看的津津有味,直到我遇到了公式。他怎么就这样那样求得了各项的取值范围了😭 |
Beta Was this translation helpful? Give feedback.
-
上学时《计算机组成原理》学的云里雾里,那时候如果能看到这篇文章就好了(~ ̄▽ ̄)~ |
Beta Was this translation helpful? Give feedback.
-
哈哈哈还得是K神,看完终于明白数值编码以及为什么这么编码了 |
Beta Was this translation helpful? Give feedback.
-
一般都懒得评论的,但这文章确实让我对这一块有了新的认识,只惜没早点刷到,K神点赞。 |
Beta Was this translation helpful? Give feedback.
-
第一张图片里面的“除符号为外”,应该是“除符号位外” |
Beta Was this translation helpful? Give feedback.
-
终于明白为什么需要补码了! |
Beta Was this translation helpful? Give feedback.
-
1 + (-2) 的计算过程用补码来表示会不会更直观一点呢?能直接指向以补码存储的原因 |
Beta Was this translation helpful? Give feedback.
-
看到 float 可表示的最大正数时有些疑惑🤔,为啥指数最大值不是 255,然后问GPT整明白了。 |
Beta Was this translation helpful? Give feedback.
-
你好,请问文章可以转发吗,我想记录在我自己的博客中,我会标明出处 |
Beta Was this translation helpful? Give feedback.
-
在计算机中,是不是都需要将数字转换成原码,再转换成反码,最后转换成补码这样的操作过程?另外,想问一下,这个转换的过程是什么地方做的,编译器?还是操作系统? |
Beta Was this translation helpful? Give feedback.
-
实际上,这是因为浮点数 float 采用了不同的表示方式。根据 IEEE 754 标准,32-bit 长度的 float 由以下部分构成: 符号位 |
Beta Was this translation helpful? Give feedback.
-
建议增加上溢和下溢的解释,因为中文网络环境里一堆半吊子写的博客瞎解释,误人子弟,需要人气高传播广的途径纠正这个问题 |
Beta Was this translation helpful? Give feedback.
-
写得太好了,刚好这学期学数据结构 |
Beta Was this translation helpful? Give feedback.
-
大佬,你好。我使用firefox安卓版浏览,内容中很多数字部分不能显示。类似 1 byte = 8 bits,数字1和8不显示。 |
Beta Was this translation helpful? Give feedback.
-
也因此在一些特殊的业务场景,例如说支付系统,其实对于交易金额的精度要求非常高,一般不考虑基本数据类型!!!Java 选手或早或晚会碰到这个面试题。 |
Beta Was this translation helpful? Give feedback.
-
learning... |
Beta Was this translation helpful? Give feedback.
-
5/30来打卡啦,今天学到了很多,讲解很清晰,点赞 |
Beta Was this translation helpful? Give feedback.
-
3 + (-2)是怎么计算呢? |
Beta Was this translation helpful? Give feedback.
-
然而,补码 这里-128的计算错了吧? |
Beta Was this translation helpful? Give feedback.
-
"数字是以“补码”的形式存储" |
Beta Was this translation helpful? Give feedback.
-
感谢回复
假装有昵称
***@***.***
…------------------ 原始邮件 ------------------
发件人: ***@***.***>;
发送时间: 2024年8月27日(星期二) 晚上7:44
收件人: ***@***.***>;
抄送: ***@***.***>; ***@***.***>;
主题: Re: [krahets/hello-algo] chapter_data_structure/number_encoding/ (Discussion #500)
负数, 从原码--> 补码: 取反加一
从补码---> 原码: 减一取反
1 -2
= 0000 0001 + 1000 0010 (原)
= 0000 0001 + 1111 1101 (反)
= 0000 0001 + 1111 1110 (补)
= 1111 1111 (补)
= 1111 1110 (减一)
= 1000 0001 ( 取反得到原)
= -1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
哇,全是计组学过的知识,好痛苦 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
作者您好,3.3.2 浮点数编码小节中的1+N的取值范围的右区间值应该是3-2^-23 而不是2-2^-23。 |
Beta Was this translation helpful? Give feedback.
-
计算float中E组,最前面那个视为符号位还是正常算呢 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
在现代计算机中,如果需要将原码转换为反码,一般会采用一种简单的硬件逻辑实现方式,即直接对所有位进行取反操作(包括符号位)。反码有两种表示方法吗? |
Beta Was this translation helpful? Give feedback.
-
chapter_data_structure/number_encoding/
一本动画图解、能运行、可提问的数据结构与算法入门书
https://www.hello-algo.com/chapter_data_structure/number_encoding/
Beta Was this translation helpful? Give feedback.
All reactions