AT&T 6300 Programmer's Manual page 71

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

Advertisement

Variable Types
• When a floating-point value is converted to an
integer, the fractional portion is rounded.
Example:
10 C%=55.88
20 PRINT C%
RUN
56
Ok
• If
a double precision variable is assigned a
single precision value, only the first seven
digits (rounded) of the converted number will
be valid. This is because only seven digits of
accuracy were supplied with the single
precision value. The absolute value of the
difference between the printed double
precision number and the original single
precision value will be less than 6.3E-8 times
the original single precision value.
Example:
10 A2.04
20 B#=A
30 PRINT AjB#
RUN
2.04
2.039999961853027
Ok
3-13

Advertisement

Table of Contents
loading

Table of Contents