Thread: QL_Sinclair
View Single Post
Old 26th Nov 2020, 12:52 pm   #11
Craig Sawyers
Dekatron
 
Craig Sawyers's Avatar
 
Join Date: Nov 2010
Location: Oxford, UK.
Posts: 3,022
Default Re: QL_Sinclair

A friend bought a QL when they first came out. He wrote a quick test programme to do a simple calculation that he could check with a calculator. The answers were different, not by much - but different.

The test programme used root(2). So he changed it to find root(2.00001) and the answer was bang on.

Basically, commonly used constants, e, pi, root(2) etc were stored in ROM, and the guy (probably with Sinclair breathing down his neck) put in a slightly wrong value for root(2).

Entering not quite an integer argument made the machine do the calculation instead of using the ROM value.

Craig
Craig Sawyers is online now