CREAL
CREAL(<numeric expression>)
5 DEFINT n
10 n=75.765
20 d=n/34.6
3 0 P R I N T d
40 PRINT CREAL(n)
50 PRINT n/55.4
run
2.19653179
76
1.37184116
Ready
FUNCTION: Converts a value to a real number. (As opposed to integer).
Associated keywords:
CINT
DATA
D A T A < l i s t o f constant)
10 REM Proofreader
20 DIM Proofer$(5)
3 0 D I M P r o o f e r S u r n a m e $ ( 5 )
40 FOR n=l to 5
50 READ Proofer$(n)
6 0 R E A D P r o o f e r S u r n a m e $ ( n )
6 5 P R I N T P r o o f e r $ ( n ) ; " " P r o o f e r S u r n a m e $ ( n )
7 0 D A T A B o b , S m i t h , D i c k y , J o n e s ,
M a l c o l m , G r e e n , A l a n , B r o w n , I v o r , C u r r y
90 NEXT
COMMAND: Declares constant data for use within a program. One of the most widely used features
of BASIC that lumps constant data in
DATA
statements for retrieval as required. The data type
must be consistent with the variable invoking it. A
DATA
statement may appear anywhere in a
program.
Associated keywords:
READ, RESTORE
Содержание CPC464
Страница 1: ......
Страница 32: ...or you can type 3e1 1e1 ENTER 300 2 3000x1000 Type 3e3 1e3 ENTER 3000000 3 3000x0 001 Type 3e3 1e 3 ENTER 3 ...
Страница 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Страница 118: ...TO DO DRAW THIS PAGE ...
Страница 219: ...actual value may be made to vary during the execution of a program ...
Страница 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Страница 241: ......
Страница 245: ...Sound envelope Music planner sheet ...