From 01857a008e29206b1877080b07b724280f6b07f7 Mon Sep 17 00:00:00 2001 From: Joshua Perry <45966243+jpez-development@users.noreply.github.com> Date: Thu, 14 Apr 2022 19:05:19 +0100 Subject: [PATCH] first post content --- blog/blog.html | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/blog/blog.html b/blog/blog.html index 994c800..2a5a645 100644 --- a/blog/blog.html +++ b/blog/blog.html @@ -33,9 +33,18 @@
-

Binary Conversions

+

Binary to Denary Conversions

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste mollitia repellat, possimus nesciunt aspernatur quisquam doloremque! Illo, debitis distinctio, nostrum voluptatum possimus minus odio quaerat quia fugit maiores porro. Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cupiditate quas recusandae dolorum sunt porro vero, temporibus nesciunt cum, sint iure quis suscipit dignissimos maiores cumque debitis nihil, eveniet dolores nemo.

+

The image above is an example of a table we can use to convert 8-bit binary numbers (referred to as bytes) to denary. + Each individual bit is put into each column in the same order as written. Any columns with a 1 should have their values added together. + The resulting value is the denary conversion. + + To convert from denary to binary, take the number you wish to convert and starting in the left most column try subtracting the number from + the one you wish to convert. If it can be done without producing a negative put a 1 in the column, if you cannot, put a 0. Once the remainder is 0, + add 0s to any remaining columns. The resulting number is the binary conversion. + + If you want to convert above 8-bit numbers, each column's denary value is calculated as 2 raised to the power of the column starting from the right and at 0. +