Download chai.notice

Back to the list

Display this manual page in
$$$$ CHAI     NOTICE  CHAT      11/09/12    21:15:21     7124           
                                             DATE     11/09/12

    Operateur CHAINE                         Voir aussi : TEXT
    ----------------   
    MOT1 = CHAINE  ('FORMAT' MOT2 ) OBJ1 |(*N)| ( OBJ2  .....)  ;
                                         |(/N)|


    Description :
    _____________

    The CHAINE operator enables the user to create a MOT type object 
    MOT1 that does not exceed 512 characters.

    Contents :
    __________

    OBJi : MOT, ENTIER, FLOTTANT or LOGIQUE type objects

    MOT2 : FORTRAN-style format for formatting the FLOTTANT type
           objects. Opening and closing parenthesis are mandatory.
           The default format is '(1PE12.5)' (Cf. fortran formats).
            '(A4)'   : string of 4 chars
            '(I5)'   : integer of 5 digits
            '(F8.5)' : float of 8 chars with 5 decimals maxi
                       without exponent
            '(E12.5)' : float of 12 chars with 5 decimals maxi
                       and exponent, type 'E5'
            '(D12.5)' : float of 12 chars with 5 decimals maxi
                       and exponent, type 'D+05'

    Note :
    ______

    The string is created by the concatenation of the strings 
    of the OBJi objects of MOT type.
    
    If OBJi is an ENTIER, FLOTTANT or LOGIQUE type object, it will be
    first converted into a string.
    
    For FLOTTANT type objects, the last FORMAT option read is used.
    This option must be used with caution as it can induce a crash if
    there is an error in de coding

    *N (or /N) enables you to right- (or left-) justify the object on
    the Nth column.

    Examples :
    __________

    1)
    PRESS = 25.86  ;
    ICAS  = 2 ;
    AA=CHAINE  ' CASE:' ICAS '  PRESSURE :' PRESS;

 CASE:2  PRESSURE : 2.58600E+01

    2) 
    AA=CHAINE  ' CASE:' ICAS  FORMAT '(F6.2)' '  PRESSURE :' PRESS;

 CASE:2  PRESSURE : 25.86

    3)
    F1 = '(F6.2)' ;
    BB = CHAINE ' PRES1=' FORMAT F1 PRESS ' PRES2=' PRESS ' PRES3='
         FORMAT '(SP,1PE10.3)' PRESS ;

 PRES1= 25.86 PRES2= 25.86 PRES3=+2.586E+01

    4)
    IJK=321; CC=CHAINE IJK*10 IJK*20;
             DD=CHAINE IJK/10 IJK/20;
    MESS CC ; MESS DD;

       321       321
         321       321

 
 
 

© Cast3M 2003 - All rights reserved.
Disclaimer