FP epsilon estimation in Basic

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

Comments

Popular Posts

Hello x86: Low-level assembly coding for the 8086

Announcement: Writing a new book in Data Science and R&D projects

Fibonacci numbers in C (4 different ways)

Multiplication tables in COBOL

Bricks and towers in Prolog

Channel Updates