When this happens, IDL will adjust either the contents of the output value or the width of the field, using the following mechanisms: Whitespace Paddingīy default, if the value being formatted uses fewer characters than specified by the width parameter, IDL pads the value with whitespace characters on the left to create a string of the specified width. The value being formatted may be shorter than the output width specified by the width parameter. Width specifications and default values are format-code specific, and are described with the format codes below. Is an optional flag that specifies that string or numeric values should be left-justified on output. Non-decimal numeric codes (B, O, and Z) allow the "+" flag, but ignore it. Normally, only negative numbers are output with a sign prefix. The "+" flag is only valid for numeric format codes. Is an optional flag that specifies that positive numbers should be output with a "+" prefix. If n is not specified, a repeat count of one is used. Is an optional repeat count (1 ≤ n) specifying the number of times the format code should be processed. The syntax of a FORTRAN-style format code is: C Use the FORTRAN style to print out three numbers surrounded by brackets: PRINT, FINDGEN( 3), FORMAT = '("The values are: ")' The FORTRAN-style format codes specify how data should be transferred using a format similar to that in the FORTRAN language.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |