From ea9e8c451b1ded967329c1062b058c53b5cc6372 Mon Sep 17 00:00:00 2001
From: Tri Nguyen <93411990+nguy8tri@users.noreply.github.com>
Date: Tue, 9 Jan 2024 11:48:36 -0800
Subject: [PATCH] Correction to floating point conversion
---
notes/primitive-data-types.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/notes/primitive-data-types.md b/notes/primitive-data-types.md
index 2efe8e6..545f31e 100644
--- a/notes/primitive-data-types.md
+++ b/notes/primitive-data-types.md
@@ -171,7 +171,7 @@ This is arranged such that the resulting float/double number is:
-$$(-1)^{S_2}\times10^{E_2 - O_2}\times(1.M)_2$$
+$$(-1)^{S_2}\times2^{E_2 - O_2}\times(1.M)_2$$
@@ -186,4 +186,4 @@ These have a very simple representation, as they are the equivalent of an unsign
## Booleans
-Booleans are quite simple. It is 0 for false and 1 for true, but you'll notice that we use an entire byte for it as opposed to a single bit. This is because since everything else is a whole multiple of a byte, people decided to make it at least a byte too.
\ No newline at end of file
+Booleans are quite simple. It is 0 for false and 1 for true, but you'll notice that we use an entire byte for it as opposed to a single bit. This is because since everything else is a whole multiple of a byte, people decided to make it at least a byte too.