Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Conversion between binary and decimal

Shulou Source: shulou.com Published: 2022-06-01 04:26:10 10月05日 Update

1. Convert binary 101 to decimal

First mark 101 from right to left, starting with 0, as follows

Binary 1 0 1

Mark 2 1 0

Then binary 101 is converted to decimal, which is calculated as follows

2. Convert decimal 5 to binary

Remove with 2, take the remainder, as follows

And then write from the bottom up, and the result is 101.

Tags: Binary decimal decimal digit remainder mark result Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Docker Huawei Linux NVidia