Modcomp


Modcomp FLOATING POINT numbers are represented by one bit for the sign (S), 9 bits for the exponent, and 22 bits for the fraction.  Floating point numbers are in 2's complement.  There is no normalization.

 
Modcomp 32-Bit Floating Point Format
S Exponent Fraction
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0

DOUBLE PRECISION floating point numbers add another 32-bit word which is all fraction bits for added precision.  

Negative floating point numbers are in two's complement.

INTEGER numbers are 16 bits long (not 32!), in two's complement.