next up previous contents
Next: Real KIND Selection Up: Parameterised Intrinsic Types Previous: Integer Data Type by

 

Constants of Selected Integer Kind

Constants of a selected kind are denoted by appending underscore followed by the kind number or an integer constant name (better):

    100_2, 1238_4, 54321_long

Be very careful not to type a minus sign `-' instead of an underscore `_'!

There are other pitfalls too, the constant

    1000_short

may not be valid as KIND = short may not be able to represent numbers greater than 100. Be very careful as the number may overflow.

Return to corresponding overview page gif


next up previous contents
Next: Real KIND Selection Up: Parameterised Intrinsic Types Previous: Integer Data Type by

©University of Liverpool, 1997
Wed May 28 20:20:27 BST 1997
Not for commercial use.