Dan Seitz

38%
Flag icon
Unfortunately, the Class3 number was stored as an 8-digit binary number that would roll over back to zero after it had maxed out. And the setup loop would be running over and over while waiting for everything to be ready, incrementing Class3 each time it ran. So every 256th time the setup loop ran, Class3 would be set to zero, not because the machine was safe but merely because the value had rolled over from 255 back to zero.
Humble Pi: When Math Goes Wrong in the Real World
Rate this book
Clear rating
Open Preview