Posts

Showing posts with the label basic

FP epsilon estimation in Basic

Image
Floating-point epsilon in retro GW-Basic (MS-DOS) back in the early '80s. This very short code demonstrates how easy it is to get the actual FP accuracy, i.e., the significant decimal digits in FP arithmetic operations. It can be included as-is in any program when needed. The result in GW-Basic is seven FP digits, which is consistent with 4-byte float types used in other programming languages of that era like Fortran and C. Enable captions for more details and walk-through. Source code available at the Github repository (see channel info). Tags: #ambient #coding #programming #notalking #basic #retro #msdos #dosbox

Factorization of a number in GW-Basic

Image
The factorization of an integer in retro GW-Basic no talking, in emulated 80286 / MS-DOS machine in DOSbox. This tutorial is a taste of how home programming looked like in the early '80s, while also showing how notoriously slow GW-Basic was with arithmetic calculations. Enable captions for more details and walk-through. Source code available at the Github repository (see channel info). #ambient #coding #programming #notalking #basic #retro #msdos #dosbox

Quadratic equation solver in GW-Basic

Image
Quadratic equation (ax^2+bx+c=0) solver in retro GW-Basic no-talking, in emulated 80286 / MS-DOS machine in DOSbox. This tutorial is a taste of how home programming looked like in the early '80s, while also showing how difficult it was to correctly pre-plan all 'goto' conditional jumps beforehand when line numbering and editing was the only way to actually edit the source code. Enable captions for more details and walk-through. Source code available at the Github repository (see channel info). Tags: #ambient #coding #programming #notalking #basic #retro #msdos #dosbox

Channel Updates