AT&T 6300 Programmer's Manual page 472

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

Advertisement

STR$
Function
Example
Example
7-316
5 REM ARITHMETIC FOR KIDS
10 INPUT "TYPE A NUMBER"jN
20 ON LEN(STRS(N]) GOSUB
30,100,200,300,400,500
The entered number N is converted to a string
by the STR$ function. The program then
branches according to the number of digits in
the number entered.
10A!=1.3
20 A#
=
VAL(STRS(A!])
30 PRINT A#
RUN
1.3
Ok
The conversion in line 20 causes the value in
A! to be stored accurately in the double-
precision variable A#.

Advertisement

Table of Contents
loading

Table of Contents