Previous

10.3.4.7. Bits patterns

10.3.4.7.1. Syntax a) NEST bits pattern{A341c } : NEST RADIX frame{b}, NEST integral mould{A342b } .

b) NEST RADIX frame{a} : NEST insertion{A341d } , RADIX{82d,e,f,g } , unsuppressible suppression{A341l} , radix marker{c}.

c) radix marker {b} : letter r{94a } symbol. {Examples:

}

a)
2r6d26sd

· b 2r

{For the semantics of bits-patterns, see 10.3.4.1.2.e .}

{

aa) The modes which are output (input) compatible with a 'bits'-pattern are those specified by {L} BITS (REF {L} BITS).

bb) A value V is converted to a string using a 'bits' pattern P as follows:

· the integer I corresponding to V is determined, using the operator ABS {10.2.3.8.i };

If the "r" frame of P was yielded by a radix-two- (-four-, -eight-, -sixteen-) -frame,
then I is converted to a string, controlled by the integral mould of P, containing a binary (quaternary, octal, hexadecimal) representation of I (cf. 10.3.4.2.1.bb )


· if I cannot be represented by such a string, the conversion is unsuccessful.

cc) A string S is converted to a bits value suitable for a name N, using a 'bits' pattern P, as follows:

· if the "r" frame of P was yielded by a radix-two- (-four-, -eight-, -sixteen-) -frame, then the integer I for which S contains a binary (quaternary, octal, hexadecimal) representation is determined;

· the bits value B corresponding to I is determined, using the operator bin {10.2.3.8.j } :

· if the width of B is greater than that of the value to which N refers, the conversion is unsuccessful.}
 
Next