browse/
4 results
languages/why-does-0-1-0-2-give-0-30000000000000004-in-python.md
Why does 0.1 + 0.2 give 0.30000000000000004 in Python?
Type 0.1 + 0.2 into Python and you get 0.30000000000000004. It is not a bug: computers store fractions in binary, and one tenth has no…
ai/embeddings-how-a-computer-measures-that-a-kitten-is-like-a-cat.md
Embeddings: how a computer measures that a kitten is like a cat
How does a computer know that kitten is closer to cat than to car? It can't read meaning, but it can measure it. An embedding turns a word…
web/why-your-200px-box-is-250px-wide-the-css-box-model.md
Why your 200px box is 250px wide: the CSS box model
Every element on a web page is a box made of four layers: content, padding, border and margin. By default, CSS width measures only the…
computers/counting-with-only-0-and-1-how-computers-store-numbers-and-letters.md
Counting with Only 0 and 1: How Computers Store Numbers and Letters
Every photo, message and web page on your computer is stored as numbers written with just two digits: 0 and 1. That's binary, and it works…