GF

From BR Wiki
Revision as of 20:24, 21 January 2013 by Laura (talk | contribs) (Created page with "GF reads and writes strings and numbers. It left justifies strings and right justifies numbers. Strings may be any value not exceeding the specified length. Numbers may includ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

GF reads and writes strings and numbers. It left justifies strings and right justifies numbers. Strings may be any value not exceeding the specified length. Numbers may include a decimal point at any position and may have an exponent.

The following program demonstrates this:

00010    open #1: "name=xxx,recl=80,replace",internal,outin,relative 
00020    write #1,using 'form gf 10,c': 1234.56,"X"
00030    write #1,using 'form gf 10,c': "1234.56","X"
00040    write #1,using 'form gf 14,c': 123456e-20,"X"

This program produces a file with two records containingthe following, where "bbb" represents three blank spaces:

bbb1234.56X
1234.56bbbX
bbb1.23456E-15X   (the normalized form of the value)