12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Numer ic ConstantsNumeric constants can be integers or floating point numbers. Integer constants areconsidered octal if the first digit is 0 . Valid digits in the rest of the constant are 0through 7 . A hexadecimal constant begins with 0x or 0X and is followed by digits orthe letters a or A through f or F ,which have values 10 through 15. Otherwise, asequence of digits is a decimal constant.Floating-point constants have an integer part, a decimal point, a fraction part, an eor E and an optionally signed exponent. The integer part or the fraction part, but notboth, may be missing. The decimal point or the e and exponent, but not both, may bemissing.Octal and hexadecimal constants can have values from ± 2 31 . As <strong>spec</strong> stores numbervalues internally in double-precision format, the range of other integer and floatingconstants is determined by the range of double-precision numbers allowed by thehost computer’s compiler and architecture. To conserve resources, <strong>spec</strong> by defaultstores the numbers used in the data group facility in single-precision format. Double-precisioncan be selected at the <strong>spec</strong> administrator ’s option, though, when <strong>spec</strong>is installed.The following are valid numeric constants.65535 0177777 0xFFFF+1066 1.066e3 1.066e+3Str ing ConstantsStrings are delimited by pairs of single or double quotes. The following escapesequences, introduced by a backslash, can be included within strings to represent certain<strong>spec</strong>ial characters:\a attention, audible alert (bell)\b back space\f form feed\n newline\r carriage return\t horizontal tab\\ backslash\’ single quoteINTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION REFERENCE MANUAL 49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!