EasyManua.ls Logo

Casio FX-890P - Page 69

Casio FX-890P
126 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
69
&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 . . produces the decimal equivalent.
Example: Shift &H 1 B 7 F . . 7039
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
A
0
F
0

Table of Contents

Related product manuals