Using Random Numbers
and Mathematical Functions:
RND, + , - , *,/
Initially computers were developed to process numbers quickly and easily.
To take advantage of the computer's ability to calculate a math answer
in a few milliseconds, you must know how to speak to a computer.
NUMBERS
Type the statement below and press :
PRINT 10
The computer should print the number 10. Make sure you use the
numerals 1 and 0, not letters. Practice printing the following numbers:
PRINT 1000000000
PRINT -100000000
Use the minus sign (-) on the Up Arrow key to indicate negative
numbers. Do not use commas in numbers. Type the statements below
to see what happens when commas are used:
PRINT 9,876,543,210
PRINT 9,876,543,210
In both examples, the computer interprets the commas as separators
in a series of numbers. It spaces the numbers out across the screen
according to its preset tab positions. To the computer, the 9 is not 9
billion, just the number 9 followed by a series of other numbers.
SCIENTIFIC NOTATION
The computer may not understand commas when it prints numbers,
but it does understand exponents. Often it will automatically translate
a large number into an exponential form. Try the numbers below:
PRINT 99999999999
PRINT 55555555555
PRINT 11111111111
PRINT -11111111111
PRINT -98765432112
47
Summary of Contents for 65XE
Page 1: ...ATARI 65XE PERSONAL COMPUTER OWNER S MANUAL TM...
Page 3: ...ATARI 65XE PERSONAL COMPUTER TM...
Page 6: ...Part 1 GettingStarted 1...
Page 9: ...4...
Page 23: ...18...
Page 25: ...20...
Page 32: ...Part 2 Programming withATARI BASIC 27...
Page 33: ...28...
Page 59: ...54...
Page 69: ...64...
Page 82: ...Part3 Appendices 77...
Page 83: ...78...
Page 97: ...92...
Page 105: ...100...
Page 125: ...120...
Page 126: ...121 Index...
Page 127: ...122...
Page 134: ...ATARI 1987 Atari Corp All Rights Reserved Printed in Taiwan C072018 001 REV B K l 2 1987...
Page 135: ......