关于计算机底层实现原理:二进制转十进制

灌水区

@[LegendaryBruce](/user/407268) 是手写二进制转十进制吗?
by DFs_YYDS @ 2024-04-11 12:15:31


就是/10啊
by ran_qwq @ 2024-04-11 12:53:29


@[LegendaryBruce](/user/407268) 按位加权 对于 $1001$ 它的分解为 $$\sum_{i = 1}^{n} 2^n$$ 也就是 $1 \times 2^3+0 \times 2^2+0 \times 2^1 +1 \times 2^0$ 初中信息学教材必修啊这是
by liverxiwo @ 2024-04-11 14:00:12


@[liverxiwo](/user/1162380) 有没有可能,问的是计算机内部如何输出十进制数(计算机不会做十进制加法)
by Grammar__hbw @ 2024-04-11 17:57:59


@[Grammar_hbw](/user/856004) 是这样的
by LegendaryBruce @ 2024-04-11 22:25:03


@[DFs_YYDS](/user/1119406) 差不多,因为最近在手写二进制的高精度,但是在输出这关卡住了
by LegendaryBruce @ 2024-04-11 22:26:16


我在网上搜了老半天,没一个说到的。或许可以参考python,Java底层代码中整型的存储方式。python存储整型时是用二进制存的
by chenruikai @ 2024-04-13 14:42:50


@[chenruikai](/user/1041549) 不知道大佬能不能给个链接引路?我不清楚在哪里看源码、看源码的哪部分捏
by LegendaryBruce @ 2024-04-13 18:23:05


|