Gambit: Software Tools for Game Theory | ||
---|---|---|
<<< Previous | Next >>> |
Format[x->NUMBER, {width<->0}, {decimals<->6}, {expmode<->False}] =: NUMBER Format[x->TEXT, {quote<->False}] =: TEXT Format[x->MIXED, {info<->False}, {names<->False}] =: MIXED Format[x->BEHAV, {info<->False}, {names<->False}] =: BEHAV Format[x->EFG, {decimals<->6}] =: EFG Format[x->NFG, {decimals<->6}] =: NFG |
Format sets various formatting options.
The first version sets the formatting style for output of NUMBER data types on output streams.
width: The width for a numeric field. If the width of the data is greater than width, the width is overridden. (The default is 0.)
decimals: The number of decimal places shown for floating point numbers.
expmode: If True, floating point numbers are printed in exponential format.
The second version sets the formatting style for output of text on output streams.
quote: Whether opening and closing quotation marks are written. The default is True.
The third and fourth versions set the formatting style for output of profiles on output streams.
info: The amount of information to be displayed. If True, displays all of the information about the profile. If False, only the strategy or action probabilities are displayed.
names: If True, the profiles are printed in a sparse format, with only positive-probability strategy or action profiles displayed, tagged by their strategy or action labels. If False, the whole vector (including zeroes) is printed, without any labels.
The fifth and sixth versions set the formatting style for game savefiles.
decimals: The number of decimal places to use in representing floating-point numbers.
<<< Previous | Home | Next >>> |
For | Up | Game |