Skip to main content

Floating Point Math

Your language isn't broken, it's doing floating point math. Computers can only natively store integers, so they need some way of representing decimal numbers. This representation comes with some degree of inaccuracy. That's why, more often than not, .1 + .2 != .3. It's actually rather interesting.

Floating Point Math

Comments

Popular posts from this blog

GPT-J is self-hosted open-source analog of GPT-3: how to run in Docker

Generative Pre-trained Transformer is a generation of models used to produce human-like text based on some initial text (part of dialogs or some task). One of the most "hyped" models is a GPT-3. When you see what GPT-3 generates you feel like "the future is here". GPT-J is self-hosted open-source analog of GPT-3: how to run in Docker