
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
Summary of Contents for CPC464
Page 1: ......
Page 102: ...PRINT 10 AND 12 Results in 8 PRINT 10 AND 1000 Results in 8 again ...
Page 118: ...TO DO DRAW THIS PAGE ...
Page 219: ...actual value may be made to vary during the execution of a program ...
Page 240: ...Text and WINDOW planner Mode 2 80 Columns ...
Page 241: ......