*DefineNumericFormat()

Given the value range, specifies the numeric format used for float results in 'Auto' mode.

Syntax

*DefineNumericFormat (Min, Max, FormatType, Precision)

Application

HyperView

Inputs

Min
The lower end of the value range.
Max
The higher end of the value range.
FormatType
Fixed or Scientific
Precision
The number of digits after the decimal point.

Example

BeginGraphicDefaults()
  *DefineNumericFormat(0.0, 1.0e-3, "Scientific", 5);
  *DefineNumericFormat(0.0, 10000, "Fixed", 3);
  *DefineNumericFormat(0.0, 1.0e6, "Scientific", 4);
  *DefineNumericFormat(0.0, FLT_MAX, "Scientific", 4);
EndGraphicDefaults()

Comments

In AUTO mode, HyperView will determine what format to use based on the current value range and the settings specified in the preference file. If no settings are specified in the file, the system default settings in HyperView will be used. All float values in query, measure, and notes will also use the same format that is determined by HyperView for the corresponding plot and their legend.
注: Contour, vector, and tensor each have their own legend, therefore the formatting for the corresponding float values could be different.
The order of the statement implies the priority that the individual statement will be considered in the process of determining the format to be used (the first statement has the highest priority). Consequently, the first statement should have smallest value range, etc.
注: This command applies only to 'results-related' float values like; scalar, tensor, and vector values. Integers and other float values like; time, frequency, coordinates, etc. do not obey the settings.