Division; Integer Division; Modulus; Square Root - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

Division
(use unshifted ? key for divide (/ means -;- )
Type:
? 3/3 [RETURN]
1
Type:
?
81 4
[RETURN]
2
Integer Division
(use \ for division with removal of the remainder)
Type:
? 1
Ql \
6 [RETURN]
1
Type:
? 2
Ql \
3 [RETURN]
6
Modulus
(use MOD to obtain the remainder portion after integer division)
TY'pe: ___ .
Type:
? 1
Ql
MO D 4 [RETURN]
2
? 9 MO D 3 [RETURN]
Ql
Square Root
To find the square root of a number, use s q r ( ). The number that you want the
square root of should be typed inside the brackets.
Type:
? s q r ( 1 6) [RETURN] (this means V16)
4
Chapter 1 Page 34
Foundation Course

Advertisement

Table of Contents
loading

Table of Contents