Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
smitherfield
on May 11, 2017
|
parent
|
context
|
favorite
| on:
Fixing a bug in “Airwolf” code from 1984 [video]
Another way to fix the bug would've been
INT(RND(1) * 15 + .5)
which is equivalent to rounding to the nearest integer* instead of truncating.
*If positive, which RND's return value must be.
rzzzt
on May 11, 2017
[–]
The labyrinth-printing example for the C64 also uses this:
https://10print.org/
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
*If positive, which RND's return value must be.