Keywords; Abs - AMSTRAD cpc 6128 User Instruction

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

Advertisement

Please note that AMSTRAD CPC6128 BASIC keywords are listed here using the
form:
KEYWORD
Syntax
Example
Description
Associated keywords
Keywords are either:
COMMANDS : operations that are executed directly.
FUNCTIONS : operations that are brought into action as arguments
in an expression.
OPERATORS : acting upon mathematical arguments.
BASIC converts all keywords entered in lower case letters to UPPER CASE when a
program is LIS T ed. The examples shown in this chapter use UPPER CASE, since
this is how the program will appear when LIS T ed. Hence you should enter using
lower case, as you will be able to spot typing errors more readily since the mis-typed
keyword will still be displayed in lower case when LIS T ed.
For a comprehensive guide to AMSTRAD CPC6128 BASIC, see the Concise BASIC
specification SOFT 967.
Keywords ....
ABS
AB S ( <numeric expression> )
PRINT ABS(-67.98)
67.98
FUNCTION: Returns the ABSolute value of the given expression. This means that
negative
nu~bers
are returned as positive.
Associated keywords: S G N
Complete List of Keywords
Chapter 3 Page 3

Advertisement

Table of Contents
loading

Table of Contents