Casio FX-795P Owner's Manual page 106

Hide thumbs Also See for FX-795P:
Table of Contents

Advertisement

198
CHAPTER 7
Command Reference
&H
Function:
Converts a hexadecimal character string to a decimal value by placing this func-
tion at the beginning of a given hexadecimal character string.
Parameter:
Hexadecimal numeric string. (Up to 4 digits)
-32768 < &H character string < 32767
Character string:
Explanation:
. identifier.
<Example>
&HO010
indicates 16 of a decimal number.
&HAwW B
indicates 171 of a decimal number.
&HUA
indicates 10 of a decimal number.
(J means a space.)
4) An error (Error 2) will occur if a hexadecimal character string exceeds four
digits or if there is a character other than a hexadecimal in the character
string.
<Example>
&H 10000 -> Error 2 (Five digits)
&HAG
Error 2 (Gis not a hexadecimal)
&HA#
Error 2 (#is not a hexadecimal)
7-6
Others
Example:
1@ CLEAR
2@ READ
H$
30
IF H$=*end"THEN
8@
40 MS=*&H" +H$
5@ A=VAL(MS$)
6@ PRINT
MS3°=""SA3UtU73
7@ GOTO
10
Lo.
8@
PRINT
H$;:BEEP:END.
188
DATA
10,100,1000,7FFF
11@ DATA
800@,ABCD,FFFF
12@ DATA
end
*Converts hexadecimals to decimals.
199

Advertisement

Table of Contents
loading

Table of Contents