[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::pascal

Title:DEC Pascal Notes
Notice:See note 1 for kits. Bug reports to CLT::DEC_PASCAL_BUGS
Moderator:TLE::REAGAN
Created:Sat Jan 25 1986
Last Modified:Tue Jun 03 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:2675
Total number of notes:13409

2658.0. "PASCAL /FLOAT=IEEE_FLOAT supported for OpenVMS VAX ?" by CSC32::D_SANFORD () Wed Feb 19 1997 20:22

    Pascal V5.5 and earler, OpenVMS VAX any version

    Is or will IEEE float be supported on OpenVMS VAX?  For FORTRAN and C
    this is only supported on OpenVMS Alpha, but the OpenVMS documentation
    says:

PASCAL

  /FLOAT=floattype                D=platform-specific

                                      D=/FLOAT=D_FLOAT(OpenVMS VAX)
                                      D=/FLOAT=G_FLOAT(OpenVMS Alpha)

    Selects the default format for REAL and DOUBLE data  types.   You
    must  specify  'floattype'  if you use the /FLOAT qualifier.  You
    can specify the following float types on OpenVMS VAX and  OpenVMS
    Alpha systems:

          o  D_FLOAT with corresponding [FLOAT(D_FLOAT)] attribute

          o  G_FLOAT with corresponding [FLOAT(G_FLOAT)] attribute

          o  IEEE_FLOAT   with   corresponding    [FLOAT(IEEE_FLOAT)]
             attribute

  I think the documentation is in error, but a customer is hoping
  otherwise.

  Regards, Drew Sanford
  Language Support Team
T.RTitleUserPersonal
Name
DateLines
2658.1TLE::REAGANAll of this chaos makes perfect senseThu Feb 20 1997 07:3839
    You are correct.  The HELP file ia a little absent about what
    is supported on what platform.  
    
    If you also look in the HELP file about the individual IEEE types,
    you'll see:
    
PASCAL

  Data_Types

    Real

      S_FLOAT

         The S_FLOAT type denotes a IEEE S_Floating single-precision real
         value regardless of the setting of the FLOAT attribute or /FLOAT
         command line qualifier.

         S_FLOAT is supported on OpenVMS Alpha systems only.

    The HELP file isn't really meant as a replacement for the
    documentation.  In the Reference Manual, the section on the FLOAT
    attribute (while not saying so directly) points you to section 2.2.
    In section 2.2, see table 2-7, "Supported Floating-Point Formats".  
    Footnote #1 contains the sentence "The IEEE data types are not 
    supported on VAX systems."
    
    Also, if you try to use /FLOAT=IEEE on a VAX system, you'll get:
    
(hiyall)$ pascal/float=ieee x
%DCL-W-IVKEYW, unrecognized keyword - check validity and spelling
 \IEEE\

    I'll make a note to add some text to the help file and manuals in the
    sections on the FLOAT attribute and qualifier about this so the reader
    won't have to go hunting for the right information.
    
    				-John
    
2658.2CSC32::D_SANFORDThu Feb 20 1997 13:335
    Great!  He did get error with /FLOAT=IEEE, so he was actually 
    asking us to fix the problem...  but I did confirm this was
    only for Alpha.
    
    Thank you -drew