How Computers Store Decimal Numbers IEEE754 Explained
Why does Python tell you that 0.1 + 0.2 = 0.30000000000000004? The answer is IEEE 754 - the floating-point standard baked into every CPU on the planet.
8 posts tagged Python
Why does Python tell you that 0.1 + 0.2 = 0.30000000000000004? The answer is IEEE 754 - the floating-point standard baked into every CPU on the planet.
Let’s celebrate Pi Day in this appropriately short video by writing some Python programs to calculate Pi.
I’ve been having a bit of a play around with my Agon Light, trying to come up with some ideas for a future video. I’ve discovered it has quite a nice 320×240 64 colour video mode that has just enough pixels to be interesting.
In preparation for my next video I’ve been tidying up some cellular automata code I wrote. There’s some good old Conway’s Life, some 1D CAs that make pretty patterns, and one I recently discovered called Wire World.
I found my 25 year old A-Level programming project, is it any good?
How to import your exported Facebook data into a WordPress blog
How to read and write JSON files using Python so that they can be used in your Python programs.
A quick set of notes on how to parse command line arguments properly in Python. This uses the argparse module, totally removing any effort on your part when it comes to processing command line switches.