Single Real; Sreal Example - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

Single Real

SREAL Example

The single real (SREAL) format conforms to IEEE-754 specifications. This
format has 32 bits, 4 bytes per reading as follows:
S EEE EEEE
E MMM MMMM
byte 0
byte 1
Where:
S = sign bit (1 = negative 0 = positive)
E = base two exponent biased by 127 (to "decode" these 8 bits, subtract 127
from their decimal equivalent).
M = mantissa bits (those right of the radix point). There is an implied most
significant bit (MSB) to the left of the radix point. This bit is always assumed
to be "1". This provides an effective precision of 24 bits with the least
significant bit (right most) weighted 2
mantissa is to convert these 24 bits (MSB assumed "1") to an integer and
-23
then multiply by 2
.
The value of a number in the SREAL format is calculated by:
s
(exponent)
´
´
(-1)
(mantissa)
2
This example resolves the decimal equivalent of the following SREAL
formatted number:
SEEEEEEE EMMMMMMM MMMMMMMM MMMMMMMM
10111011 11001000 01001000 10010000
The sign bit "S" is set "1," this indicates that the number is negative.
The base two's exponent (01110111) evaluates to:
6
5
4
2
1
2
+ 2
+ 2
+ 2
+ 2
+ 2
Since the exponent is biased by 127, the real value is:
exponent - 127 = 119 - 127 = -8
The mantissa [1.10010000100100010010000 (MSB assumed "1")] evaluates
to:
-l
-4
-9
-12
1 +2
+ 2
+ 2
+ 2
Evaluating the mantissa at the byte level instead of the bit level:
byte 1
byte 2
byte 3 = byte 1
11001000 01001000 10010000
-7
´
mantissa =200
2
+ 72
or
16
´
mantissa = (200
2
+ 72
MMMM MMMM
MMMM MMMM
byte 2
byte 3
-23
. Another way to evaluate this
0
= 119
-16
-19
+ 2
+ 2
= 1.56471443177
byte 2
200
72
-15
-23
´
´
2
+ 144
2
= 1.56471443177
8
-23
´
´
2
+ 144)
2
= 1.56471443177
Chapter 4 Making Measurements
byte 3
144
93

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents