Formatting Page
The controls within this page specify the precision at which TotalView should display a variable's value. You can define the precision for the following data types:
- 8-bit integers
- 16-bit integers
- 64-bit integers
- Single precision floating point numbers
- Double precision floating point numbers
- Extended precision floating point numbers
- Strings
If you have selected a numeric data type in the left hand list,the presentations you can use are:
| Selection |
Tells TotalView To Display Values: |
| Automatic |
TotalView to display information as hex(dec) in C and C++ and dec(hex) in Fortran. |
| Hexadecimal (Decimal) |
In both hexadecimal and decimal. The decimal value is displayed within parentheses. |
| Decimal (Hexadecimal) |
In both decimal and hexadecimal. The hexadecimal value is displayed within parentheses. |
| Decimal |
As decimal numbers. |
| Hexadecimal |
As hexadecimal numbers. |
| Maximum Length |
If the data type selected is String, the display changes to a single box and up and down controls that let you specify the maximum number of characters that will be in the displayed string. |
| Octal |
As octal numbers. |
| Scientific |
Using scientific notation. |
After you have selected a data type, you can specify the precision using the following controls:
| Format |
Meaning |
| Min Width |
The total number of positions used to display a number. This value includes decimal points as well as any other characters contained within the display. If this width is too small to display a value, TotalView will use more characters. |
| Precision |
The number of characters to the right of the decimal point. |
| Align |
Selecting Left or Right tells TotalView how it should display information within the specified width. For example, if the Min Width is 20 and TotalView needs only 12 characters to display a value, the value can be placed to the right with 8 preceding spaces or to the left with 8 trailing spaces. |
| Pad |
If the Align value is Right and TotalView needs fewer positions to display the value than indicated in the Min Width control, it can print the leading spaces as either Spaces or Zeroes. |
| Prefix |
If TotalView is displaying Hexadecimal numbers, it can include the 0x hexadecimal indicator with the number. Similarly, when it is displaying Octal numbers, it can include the 0 octal indicator. |
As you change values, the Preview area shows the effect of your changes.
Note: Before making changes, it may be helpful to set a large minimum width, then play with the other controls to see what happens as you alter how TotalView will display values.