Number Formatter

IntroductionQuick ReferencesHow Do I ... TopicsBuilt-in ToolsScripting and Programming

When you activate Number Formatter, it presents a dialog box that allows you input and format your ASCII text. It is a number processing function, which filters and formats the text in the Input Text box according to the parameters you specified. While the dialog is confirmed, it converts the formatted text into a hex number.

What do you want to do?

To view command options

The following is a list of parameters you can specify while formatting a number:

To know formatting order

The Formatter formats the ASCII text in the Input Text box by the following order:

  1. Strips several lines from start.

  2. Strips several lines from end.

  3. Strips several characters from start of every line.

  4. Strips several characters from end of every line.

  5. Finds and strips all occurrences of the text from every line.

To know conversion rules

The Formatter converts the formatted text according to the following rules:

  1. Picks every number from the formatted text by current Number Separator.

  2. Converts every number from current Number System to hexadecimal system.

  3. Combines all converted hex numbers according to their original occurrence.

  4. Presents the result as a space-separated list of hex-bytes.

How to activate Number Formatter?

To activate Number Formatter, you can use one of the following menu commands:

How to format number?

Here are the general guides for formatting an ASCII text to get a space-separated list of hex-bytes:

  1. Type text in the Input Text box, or import text from a file by clicking the Input Text From File button. Also, you can paste a text to the Input Text box.

  2. Specify the formatting parameters to fit your input text.

  3. Click Format to start a formatting process.

  4. Click Reset to reset your input text to its initial value.

  5. Repeat 2 to 4 to get a desired formatted text.

  6. Click Ok to convert the formatted text to a space-separated list of hex-bytes.

How to format a piece of c-source code?

Suppose we have a piece of c-source code as shown at right, we wish to format it to get a big hex number, we can do as follows:
  1. Paste the c-source code to Input Text box.

  2. Set Strip 'n' Lines From Start to 4.

  3. Set Strip 'n' Lines From End to 2.

  4. Set Strip 'n' Chars From Start to 2.

  5. Set Strip All Occurrence From Input Text to "0x".

  6. Set other stripping options to 0.

  7. Click Format to format the code.

  8. Select Hexadecimal to specify the number system.

  9. Select Comma to specify the separator between two numbers.

  10. Click Ok to convert the formatted text to a space-separated list of hex-bytes.

How to format a memory dump?

Suppose we have a piece of memory dump as shown at right, we wish to format it to get a big hex number, we can do as follows:
  1. Paste the memory dump to the Input Text box.

  2. Set Strip 'n' Chars From Start to 10.

  3. Set other stripping options to 0.

  4. Click Format to format the code.

  5. Select Hexadecimal to specify the number system.

  6. Select Space to specify the separator between two numbers.

  7. Click Ok to convert the formatted text to a space-separated list of hex-bytes.

How to format a big number?

Suppose we have a 240 digit decimal prime as shown at right (To show the prime, we have to wrap it), we wish to format it to get a hex prime, we can do as follows:
  1. Paste the decimal prime to Input Text box.

  2. Select Decimal to specify the number system.

  3. Click Ok to convert the decimal prime to a space-separated list of hex bytes.