The constant is assumed to be of type INTEGER*2 and two bytes long. When used with a a binary operator, octal and hexadecimal constants assume the data type of the other operand. Hollerith constants have no type they assume a numeric data type and size depending on the context in which they are used. Hollerith constants are stored as byte strings each byte is the ASCII representation of one character. Table 2-1 illustrates real constants written in common and scientific notation with their corresponding E format. See the Fortran 77 Programmer's Guide for information on the magnitude and precision of a real number. The value of a real constant is either the basic real constant or, for the forms sww.ff E see and sww E see, the product of the basic real constant or integer constant and the power of ten indicated by the exponent following theĪll three forms can contain more digits than the precision used by the processor to approximate the value of the real constant. Is a string of digits denoting the fractional part, if any.ĭenotes a real exponent, where see is an optionally signed integer.Ī basic real constant is written as an optional sign followed by a string of decimal digits containing an optional decimal point. Is a string of digits denoting the whole number part, if any. Is the sign of the number: – for negative, + (optional) for positive.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |