"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 <[email protected]> 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 <[email protected]> on behalf
> of Joe Monk <[email protected]>
> Sent: Sunday, September 6, 2020 7:35 PM
> To: [email protected]
> 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 <[email protected]> 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 <[email protected]> on behalf
> > of Paul Gilmartin <[email protected]>
> > Sent: Saturday, September 5, 2020 11:33 PM
> > To: [email protected]
> > 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 [email protected] with the message: INFO IBM-MAIN
> >
> > ----------------------------------------------------------------------
> > For IBM-MAIN subscribe / signoff / archive access instructions,
> > send email to [email protected] with the message: INFO IBM-MAIN
> >
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to