Skip to main content

Questions tagged [floating-point]

Floating point arithmetic: number formats, instruction sets, software and hardware implementations.

Filter by
Sorted by
Tagged with
13 votes
1 answer
481 views

The paper What Every Computer Scientist Should Know About Floating-Point Arithmetic uses the Cray's systems as an example of computers without a guard bit: Although most modern computers have a guard ...
Morel's user avatar
  • 131
28 votes
2 answers
2k views

I am writing 8086/8087 assembly code that performs floating-point operations, specifically converting numbers to scientific notation. While testing on real hardware (an IBM 5150 with a working 8087 ...
Ivo Filot's user avatar
  • 533
4 votes
2 answers
444 views

I am trying to reproduce a program I wrote for a Office of Surface Mining scientists back in 1985 that was written on a commodore 128 in BASIC 7.0. The program performed a Monte Carlo simulation of ...
john o'brien's user avatar
9 votes
3 answers
2k views

I upgraded a friend's computer who only used Lotus 1-2-3, and I added memory and dropped in an 8087. Later, I found out their version of Lotus 1-2-3 didn't make use of the 8087. When did Lotus 1-2-3 ...
Miss Understands's user avatar
4 votes
0 answers
274 views

The other day I came across a clever way of implementing variable-length extended precision, dated 1967 (on the BESM-6, apparently as part of the system software available at the time of introduction ...
Leo B.'s user avatar
  • 22.3k
9 votes
2 answers
474 views

The IEEE 754 floating point arithmetic working group began in 1977 and was formally accepted in 1985. One of the original driving factors of the standard itself was Intel who wanted a standard to go ...
Adam Hyland's user avatar
  • 1,082
18 votes
1 answer
4k views

Reading over some older bits I've collected over the years, it appears that some early BASICs used a truncate for their INT function, but this was standardized on floor. Any ideas why? Poking about I ...
Maury Markowitz's user avatar
22 votes
1 answer
613 views

I'm hoping to understand a routine written for the Manchester Mark I [NOTE: a comment from Raffzahn suggests this may be the Ferranti (wikipedia link) and not the Manchester Mark I] which computes ...
Adam Hyland's user avatar
  • 1,082
10 votes
1 answer
648 views

The Wikipedia page on PDP-11 architecture has a very interesting bullet point in the section on the Floating Point Processor extension to the basic architecture: full floating point operations on ...
John Dallman's user avatar
  • 15.9k
10 votes
1 answer
559 views

Most pre-IEEE floating point formats that used biased exponent and a 2's-complement mantissa without a hidden bit, were asymmetric. That is, there was a representable negative value which had no ...
Leo B.'s user avatar
  • 22.3k
15 votes
4 answers
3k views

The floating-point format on the ZX Spectrum has the unusual feature of special-casing small integers: Why does Sinclair BASIC have two formats for storing numbers in the same structure? There are ...
rwallace's user avatar
  • 65.3k
32 votes
7 answers
5k views

During the 1980s, prior to the 486 (well, strictly speaking, prior to the discontinuing of the 486SX in the nineties), IBM PCs and compatibles had hardware floating point only in the form of an ...
rwallace's user avatar
  • 65.3k
6 votes
2 answers
443 views

Every implementer of floating-point arithmetic, needs to think about how to signal overflow. One possible way to do it is by raising an exception, though this creates the problem that 'exception' can ...
rwallace's user avatar
  • 65.3k
7 votes
0 answers
325 views

A comment on the question Why did 8-bit Basic use 40-bit floating point? says the following (emphasis added): Re, "Nowadays, floating point is usually either 32 or 64 bits." More ...
texdr.aft's user avatar
  • 3,930
18 votes
2 answers
3k views

The IBM PC included a coprocessor socket for the 8087 floating-point unit. Logical enough; some customers wanted to use the 8087 to make numeric calculations run faster. But why was the 8087 designed ...
rwallace's user avatar
  • 65.3k
12 votes
4 answers
2k views

There is an excellent article about VisiCalc that goes into all the details about what happened and why, highly recommended if you are interested in that part of computing history. I was reading this ...
rwallace's user avatar
  • 65.3k
28 votes
8 answers
7k views

Nowadays floating point is usually either 32 or 64 bits, sometimes 16, occasionally 128. But of course, the Basic interpreters on the 8-bit machines, having to implement floating point in software ...
rwallace's user avatar
  • 65.3k
3 votes
1 answer
265 views

VisiCalc represented numbers in BCD to be able to handle decimals precisely. But how did it decide how many decimal places to display? In some screenshots like https://www.researchgate.net/figure/A-...
rwallace's user avatar
  • 65.3k
5 votes
1 answer
1k views

The original IBM PC had a slot for the 8087 floating-point coprocessor. This was a somewhat esoteric feature at the time – previous microcomputers had done all their floating-point in software – but ...
rwallace's user avatar
  • 65.3k
19 votes
1 answer
2k views

On modern processors the x87 FPU is integrated in the CPU chip, but it used to be a separate chip before the 80486. So is there any way to detect its presence, and maybe even its generation (8087, ...
DarkAtom's user avatar
  • 2,407
11 votes
3 answers
1k views

I implemented a differential equation solver on my Dragon 32 (which uses Microsoft Extended Color BASIC) but the results I get quickly diverge from those I expect, which are the same as those I get ...
Graham Lee's user avatar
9 votes
1 answer
1k views

Some FPUs exhibit as much as an order of magnitude slowdown when given denormal inputs, due to having to trap to microcode to handle them. Did early FPUs of the microprocessor era, exhibit substantial ...
rwallace's user avatar
  • 65.3k
6 votes
2 answers
735 views

According to http://www.quadibloc.com/comp/cp0201.htm The CDC 1604 used 48-bit floating point with 11 bits exponent and 36 bits mantissa. There was also a double precision format (which I believe was ...
rwallace's user avatar
  • 65.3k
12 votes
2 answers
700 views

I have recently developed a half-float/16-bit float library (link to Github) for Zilog Z80. It was a part of my project to run some neural network and graphics POCs for ZX Spectrum. The library uses ...
Artyom's user avatar
  • 313
25 votes
1 answer
2k views

I just came across this amazing 1976 article by Woz. In it he describes a relatively complete floating-point system for the 6502 with a 32-bit format (similar to earlier MS code). I understand the ...
Maury Markowitz's user avatar