AT&T 6300 Programmer's Manual page 70

Gwbasic by microsoft
Hide thumbs Also See for 6300:
Table of Contents

Advertisement

Variable Types
3-12
Examples:
10 D#=6#/7
20 PRINT D#
RUN
.8571428571428571
Ok
The arithmetic is performed in double
precision and the result is returned in D# as a
double precision value.
10 D=6#/7
20 PRINT D
RUN
.8571429
Ok
The arithmetic is performed in double
precision and the result is returned to D (single
precision variable), rounded, and printed as a
single precision value.
• Logical operators convert their operands to
integers and return an integer result.
Operands must be in the range -32768 to
32767 or an "Overflow" error occurs. A full
description of Logical Operators follows later in
this chapter.

Advertisement

Table of Contents
loading

Table of Contents