Posts

Showing posts from June, 2024

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

Channel Updates