.formats (Show Number Formats)

The .formats command evaluates an expression or symbol in the context of the current thread and process and displays it in multiple numeric formats.

.formats expression 


Specifies the expression to evaluate. For more information about the syntax, see Numerical Expression Syntax.


Item Description
Modes User mode, kernel mode
Targets Live, crash dump
Platforms All


The evaluated expression is displayed in hexadecimal, decimal, octal, and binary formats, as well as single-precision and double-precision floating-point format. ASCII character formats are also displayed when the bytes correspond to standard ASCII characters. The expression is also interpreted as a time stamp if it is in the allowed range.

The following example shows a .formats command.

0:000> .formats 1c407e62
Evaluate expression:
  Hex:     1c407e62
  Decimal: 473988706
  Octal:   03420077142
  Binary:  00011100 01000000 01111110 01100010
  Chars:   .@~b
  Time:    Mon Jan 07 15:31:46 1985
  Float:   low 6.36908e-022 high 0
  Double:  2.34182e-315

The Time field displays a 32-bit value in CRT time stamp format and displays a 64-bit value in FILETIME format. You can distinguish these formats because the FILETIME format includes milliseconds and the CRT format does not.

See also

? (Evaluate Expression)

?? (Evaluate C++ Expression)