Amstrad DDI-1 manual Arithmetic Operations

Models: DDI-1

1 103
Download 103 pages 20.5 Kb
Page 66
Image 66

se

(sentence) Outputs a list made up of the input objects, removes list's outer brackets (compare with list).

?make "instr_list rl repeat 4 [fd 50 rt 90]

?run (se "cs : instr_list “ht

Note that the underline character between instr and list is obtained by pressing

[SHIFT]0

word

Outputs a word made up of the input words.

?word "sun "shine sunshine

wordp

Outputs TRUE if the input object is a word or a number.

?wordp "hello

TRUE ?wordp []

FALSE

4.10.2ARITHMETIC OPERATIONS

cos

Outputs the cosine of the input number of degrees.

?cos 60 0.5

int

Outputs the integer portion of the input number.

?int 4/3 1

random

Outputs a random non-negative integer less than the input number.

?random 20

sin

Outputs the sine of the input number of degrees.

?sin 30 0.5

AMSTRAD Disc Drive & Interface DDI-1 Manual

Chapter 4.8

Page 66
Image 66
Amstrad DDI-1 manual Arithmetic Operations