From ec3e5df3b992819b4612ae7fcdd2e40eef607a31 Mon Sep 17 00:00:00 2001 From: czakarian <31866115+czakarian@users.noreply.github.com> Date: Thu, 14 Feb 2019 10:52:55 -0800 Subject: [PATCH] Update index.md examples with more detail (#26176) --- guide/english/computer-science/hexcode/index.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/guide/english/computer-science/hexcode/index.md b/guide/english/computer-science/hexcode/index.md index 64d6f17b0a..54cc18058e 100644 --- a/guide/english/computer-science/hexcode/index.md +++ b/guide/english/computer-science/hexcode/index.md @@ -39,11 +39,11 @@ Converting to decimal, it would be `11*16^3 + 14*16^2 + 14*16 + 15*1` which give Here are some other examples of equivalent hex and decimal values: ``` -0x1 == 1 -0xF == 15 -0xFF == 255 -0xFFF == 4095 -0x1000 == 4096 +0x1 == 1 == 1*16^0 +0xF == 15 == 15*16^0 +0xFF == 255 == 15*16^1 + 15*16^0 +0xFFF == 4095 == 15*16^2 + 15*16^1 + 15*16^0 +0x1000 == 4096 == 1*16^3 + 0*16^2 + 0*16^1 + 0*16^0 ``` As seen in the table example above, with one hex digit we can represent numbers up to and including 15. Add another column and we can represent numbers up to 255, 4095 with another column, and so on.