Casio FX-890P Owner's Manual page 69

Casio personal computer owner's manual
Table of Contents

Advertisement

&H
PURPOSE: Converts the 1 through 4-digit hexadecimal value following &H to a
decimal value.
FORMAT:
&H
argument
Hexadecimal value
EXAMPLE: A = &HAF
PARAMETERS: Hexadecimal value in the [0, FFFF] range.
EXPLANATION:
1. The hexadecimal value is expressed using values 0 to 9, plus characters A to
F.
2. In the manual mode, &H is entered followed by the hexadecimal value.
Pressing .
Example: Shift &H 1 B 7 F .
3. The following shows a typical example within a program. Since a numeric
variable cannot be used following &H, the hexadecimal value is appended to
&H as a string, and then converted to a decimal value using the VAL function.
SAMPLE PROGRAM:
10 REM &H SAMPLE
20 INPUT "&H";A$
30 H=VAL("&H"+A$)
40 PRINT "&H";A$;"=";H
50 GOTO 10
SEE: HEX$
HEX$
PURPOSE: Converts the argument (numeric value or numeric expression value) to a
string.
FORMAT:
HEX$
(argument)
Numeric expression
EXAMPLE: HEX$ (15)
PARAMETERS: Argument: numeric expression truncated to an integer in the
]-32769, 65536[ range. Values more than 32767 are converted by subtracting 65536.
EXPLANATION:
Returns a 4-digit hexadecimal string for a decimal value specified in the argument.
SEE: &H
.
produces the decimal equivalent.
.
→ 7039
69
A
0
F
0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Z-1grZ-1

Table of Contents