contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
format item   %d    
    Related Concepts  

Syntax

  % format-modifier* d (counter-name)


Purpose

The "%d" format item causes the value of the specified counter item to be formatted in Arabic numerals. By default, the numbers are expressed in decimal (base 10) notation. If the value is negative, a minus sign is output before the number.

For example, the following output action will output the value of the counter "line-number" in Arabic numerals within a quoted string:

  output "The file contains %d(line-number) lines.%n"

The following format modifiers can be used with the "%d" option:

For example, in the following output action, two format modifiers are applied to the "%d" format item:

  output "There were %k3fd(item-number) items.%n"

      Related Concepts
   Arrays: multi-dimensional
 
----  

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:01:01 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.