
7-6
Section
Details of BASIC Commands
176
oct$
Syntax:
OCT
$(<numerical expression>)
Description:
Function Converts the numerical expression into an octal character string.
The numerical expression must be in the range: [-2147483648…2147483647].
The resulting character string will be in the octal range: [0…7777777777].
Remarks:
Note:
1.
Single-precision or double-precision floating-point expressions will be truncated
before the conversion.
Examples:
> 10 PRINT "DEC", "OCTAL"
> 20 FOR I = 1 TO 20
> 30 PRINT I, OCT$(I)
> 40 NEXT I
> RUN
DEC
OCTAL
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
10
9
11
10
12
11
13
12
14
13
15
14
16
15
17
16
20
17
21
18
22
19
23
20
24
>
See also:
HEX
$
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...