integer arithmetic

2 moment(s) that assert this concept — showing 1–2 of 2

moderateTwo independent sources — corroborated, but not broadly
↣ how this spread over time →
provenance — click a node to open its encoding unit
[1] luaworkshop[2] The
showing 2 of 2 moments
luaworkshop · youtube · en
1The robot uses a simple state machine with integer-based logic and no floating point operations to process sensor data and make decisions.
“no floating points so everything was done uh with integers very simple uh State list a uh an aray of uh strings for ler codes and the state machine would just pick the next thing to run”
spoken · 1074s · 2012-12-05
The Science Elf · youtube · en-US
2Floating point arithmetic is significantly slower than integer arithmetic on the Z80 processor due to the need to align decimal points before addition.
“One of the reasons floats are so expensive is because you have to account for the fact that the decimal in two floating point numbers might not be in the same place. Before we can add two numbers, we have to make sure all their digits are lined up properly, but if we can be sure that the decimals are always in the same spot, we can treat these numbers like integers.”
spoken · 209s · 2022-02-10