Category: C/C++

How to convert 1-byte binary number to decimal number

Here is small converter from 1-byte binary number to decimal number:

Using stdlib – math module, so you have to link it with “-lm” like this:

Example of results:

Read more