The Represented Value - ashtech DG16 Reference Manual

Oem
Table of Contents

Advertisement

represent values less than 1 (binary). For example, the number 1.625 (decimal)
can be represented as:
1.101 (binary) which is equal to:
0
-1
-3
2
+ 2
+ 2
1 + 0.5 + 0.125 (decimal) which is equal to:
1.625 (decimal).

The Represented Value

The value of the number being represented is equal to the exponent multiplied by
the fractional value, with the sign specified by the sign bit field.
If both the exponent field and the fraction field are equal to zero, the number being represented will
also be zero.
Note that in some systems (Intel-based PCs in particular) the order of the bytes will be reversed.
Single-Precision Float
The single precision format uses four consecutive bytes, with the 32 bits
containing a sign bit field, an 8-bit biased exponent field, and a 23-bit fraction
field. The exponent has a bias of 7F (hexadecimal). The fraction field is precise to
7 decimal digits. The single-precision format can represent values in the range
-38
1.18*10
to 3.4*10
31-28
27-24
S EXPONENT
FRACTION
0000
0000
0000
0011
1111
1000
1111
1111
1111
0011
1111
0100
In 1, the value 1.0 is calculated by the following method:
1. The sign of the value is positive because the sign bit field is equal to 0.
334
(decimal) which is equal to:
38
(decimal), 1.
Table B.1. Single-Precision Format
23-20
19-16
15-12
0000
0000
0000
0000
1111
1111
0000
0000
DG14 and DG16 Board & Sensor Reference Manual
11-8
7-4
3-0
0000
0000
0000
0000
0000
0000
1111
1111
1111
0000
0000
0000
VALUE
0.0
1.0
NAN
(not a number)
0.75

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dg14

Table of Contents