No,it is not and that LE manual does not claim that it is. What that table 
describes is how to declare parameters of various types. It's analogous to they 
way you used to deal with character data in FORTRAN IV; you have to fudge using 
the available types.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3


________________________________________
From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Joe 
Monk <joemon...@gmail.com>
Sent: Monday, September 7, 2020 8:04 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: Constant Identifiers

"No, FIXED BIN(15,0) is not an integer, and the precision rules can be very
annoying to those with a Fortran mindset."

Yes it is...

Table 1. Data type definitions for PL/I
Data typeDescriptionPL/I
INT2 A 2-byte signed integer REAL FIXED BINARY (15,0)
INT4 A 4-byte signed integer REAL FIXED BINARY (31,0)

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.1.0/com.ibm.zos.v2r1.ceea300/ceea30016.htm

Joe

On Mon, Sep 7, 2020 at 12:15 AM Seymour J Metz <sme...@gmu.edu> wrote:

> No, FIXED BIN(15,0) is not an integer, and the precision rules can be very
> annoying to those with a Fortran mindset.
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
>
> ________________________________________
> From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf
> of Joe Monk <joemon...@gmail.com>
> Sent: Sunday, September 6, 2020 7:35 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: Re: Constant Identifiers
>
> "PL/I doesn't have integers."
>
> Sorry Shmuel, youre incorrect.
>
> FIXED BINARY (15,0) is a 2 byte integer and FIXED BINARY (31,0) is a 4 byte
> integer.
>
> "The ratiio 4/3 is FIXED BIN,"
>
> No, its FIXED DECIMAL (1,0)...
>
> Joe
>
> On Sun, Sep 6, 2020 at 2:33 PM Seymour J Metz <sme...@gmu.edu> wrote:
>
> > PL/I doesn't have integers. The ratiio 4/3 is FIXED BIN, with some number
> > of bits after the binary point.
> >
> >
> > --
> > Shmuel (Seymour J.) Metz
> > http://mason.gmu.edu/~smetz3
> >
> >
> > ________________________________________
> > From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf
> > of Paul Gilmartin <0000000433f07816-dmarc-requ...@listserv.ua.edu>
> > Sent: Saturday, September 5, 2020 11:33 PM
> > To: IBM-MAIN@LISTSERV.UA.EDU
> > Subject: Re: Constant Identifiers
> >
> > On Sat, 5 Sep 2020 08:13:42 +1000, Robin Vowels wrote:
> > >
> > >As for writing formulas, I prefer to follow a well-known formula, thus:
> > >
> > >volume = 4/3 * 3.14159 * radius**3
> > >
> > Beware!  Than might left-associate as:
> >     volume = ( 4/3 ) * 3.14159 * radius**3
> > ... and the quotient of integers, 4/3, is 1.
> >
> > >However, if I'm interested in efficiency, I'd prefer
> > >
> > >volume = 4 * 3.14159E0 / 3 * radius**3
> > >
> > ... (and correct.)
> >
> > -- gil
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
> >
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to