# 8bit Floating Point representation

[is just my fifty cent analogy about floating point, just wanted understand if there is a more better analogy or not]

Analogy:
You have the cake ingredient that are the mantissa and the time of cooking that is the exponent, you can use the oven and it will grown as plus or the fridge and it will grown as minus.

Diagram:

Example:

Plain english:

Technical Definition:
the mantissa is a 3bit excess-k or offset where the 0 is indicating the minimal negative and 1 is indicating the maximal positive value.
Mantissa come from Latin and literally means adder or filler.

## Error

rounding error:
you put too much baking powder and you throw away the other part because doesn’t fit the oven anymore (bit forced analogy).

removing significant digit:
is when your plate is more little than the cake you made…
like you get 0.0000001 6digit but you can represent only 3

removing information, absorbed information:
you add so much little quantity of poison to the cake that the final product is no different.
so is like a normal cake but with poison!
243.00000000013
0000000013 is thrown away
but if you use 243 in some calculation it can “poison” your final resoult making the error more big.

Awesome start! I was just poking through and saw this.

I think in this case, we could make the connection to regular scientific notation: $6.023 \cdot 10^{23}$ since it’s a fairly complex concept to start. We just need to store the sign (+/-, one bit), the number, and the exponent all in a single set of bytes.

Or, Maybe something like an account number, where the first 4 digits are the bank, the next 4 are the user’s account, the next 2 are checking/savings, etc.

The rounding error is a good scenario to consider. Here, I think we could rely on base 10 and say how it’s hard to represent 1/3 (.3333…) exactly in scientific notation because we can’t fit all the digits we need. It’s ok for the analogy to be to another part of math.