The Mantissa; The Exponent - Casio ClassPad 300 Programming Manual

Sdk programming guide
Hide thumbs Also See for ClassPad 300:
Table of Contents

Advertisement

0x0016
0x0017
0x0018
0x0019
0x001a
0x001b
0x001c
0x001d
0x001e
0x001f

The Mantissa

The remaining space in the mantissa is used to hold the value of your number.
Remember that the flag is actually part of the mantissa, and there are 2 bytes of reserved
data at the end.
The view of the mantissa:
eF
1
2
3
4
5
FLAG
The value stored in the mantissa is the value of the number you want to store without any
representation of a decimal point. This means that the numbers 1.75 and 175 both have a
mantissa of 175. The distinction is in each number's exponent.
Be aware that the mantissa is left justified – meaning that the first significant digit always
follows the flag. In other words your mantissa cannot have leading zeroes.

The Exponent

The exponent portion of an OBCD defines where the decimal point will be. The
exponent is stored in 2 bytes as follows:
eS
Sign Bit
The sign bit determines the sign of the mantissa and the exponent. Exponents have a
range of –999 to 999.
All OBCDs calculate the exponent value as if there were a decimal point right after the
most significant digit of the mantissa. That is, the values are stored in a form similar to
scientific notation.
How you calculate the value of the OBCD's exponent depends on whether the value you
want to store is positive or negative. If you have a positive number, add the value of the
exponent to 1000 to get its value. If you have a negative number, add the value of the
exponent to 6000 to get the exponent.
Application ERROR
System ERROR
Already Exists
Complex Number In List
Complex Number In Mat
Can't Solve (There is no solution)
Range ERROR
Iteration ERROR
Condition ERROR
NULL
6
7
8
9
10
11
Mantissa value
e1
e2
Exponent Value
12
13
14
15
16
Reserved
e3
17
18
19
85

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents