Specifications

1070 072 131-102 (96.08) GB
BUEP03E Protocol 8-25
Floating-point numbers
The floating-point numbers are represented according to two methods.
Internal representation specifies how floating-point numbers have been
filed in memory. External representation specifies how floating-point num-
bers are printed or displayed. These methods of representation are ex-
plained below.
Examples of external representation:
Constants Value
23.45e6 23.45 * 10
6
2.1e-5 2.1 * 10
-5
-1.23 -1.23
Internal representation according to Siemens:
VZ 23-bit mantissa VZ 7-bit exponent
2
31
mantissa * 10
n
2
0
Internal representation according to IEEE - floating-point format:
VZ 8-bit exponent 23-bit mantissa
2
31
2
(n-127)
* mantissa 2
0
The floating-point numbers occupy four bytes with single accuracy.
BÜP03E provides the %m.nf format instructions for floating-point num-
bers.
The specified methods of representation are:
- internal : IEEE format
- external : 50.44e6, 50.44e-6, 1.23, -466.600 ....
The exponents "e6, e-6" are added if the internal number cannot be re-
presented in the indicated format. The values of the above-mentioned
numbers would then be: 50.44 * 10^6 and 50.44 * 10^-6.