Gambit: Software Tools for Game Theory | ||
---|---|---|
<<< Previous | Next >>> |
GetFormat[x->NUMBER, {width<->0}, {decimals<->6}, {expmode<->False}] =: NUMBER GetFormat[x->TEXT, {quote<->False}] =: TEXT GetFormat[x->MIXED, {info<->False}, {names<->False}] =: MIXED GetFormat[x->BEHAV, {info<->False}, {names<->False}] =: BEHAV GetFormat[x->EFG, {decimals<->6}] =: EFG GetFormat[x->NFG, {decimals<->6}] =: NFG |
GetFormat returns the current formatting style.
The first version reports on output style of values of type NUMBER.
width: The width for a numeric field.
decimals: The number of decimal places shown for floating point numbers.
expmode: Whether floating point numbers are printed in exponential format.
The second version reports on output formatting for values of type TEXT.
quote: Whether opening and closing quotation marks are written.
The third and fourth versions report on formatting styles for strategy profiles.
info: Displays all information known about profile if True. If False, just displays strategy or action probabilities.
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 report on formatting of output of extensive and normal form savefiles.
decimals: The number of decimal places to use in representing floating-point numbers.
<<< Previous | Home | Next >>> |
GetEnv | Up | GetListFormat |