• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

1.整数的十进制转换

1.n到十进制系统

一一对应就够了。

例如:二进制到十进制

二进制数:

1 0 1 0 1

* * * * *

24 23 22 21 20

16 0 4 0 1

16 0 4 0 1=21

所以十进制数是21。

2.10十进制到n十进制

使用短除法

asgiizqwysk2577.png

然后只要把余数倒着写就得到二进制数101000。

2.小数之间的十进制转换

1.n十进制转换

我们以小数点为界,把整数部分乘以20,21,22.分数依次乘以2-1,2-2,2-3。

示例:二进制十进制1011.011

1 0 1 1 .0 1 1

23 22 21 20 2-1 2-2 2-3

8 0 2 1 0 0.25 0.125

全部加起来,你会得到:11.375

2.十进制到N进制

这个有点复杂。其实可以一个一个分解。

例如,十进制分数666.666被转换为二进制。

首先,我们将整数部分666转换成二进制。

之后我们发现0.6662-1(0.5),所以在十位上写1,0.666-0.5=0.166。

然后是0.16662-2(0.25),所以在百分位上写0

然后,一次一位地操作,结果就出来了。48660.88868688661

剧终

022.5.1(不愉快的劳动节)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now