Number Formatter
Introduction |
Quick References |
How Do I ... Topics |
Built-in Tools |
Scripting 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:
- Strip 'n' Lines From Start:
When using Format command, the Formatter will strip n
lines from start of the Input Text box. You can use it
to remove comment lines, etc.
- Strip 'n' Lines From End:
When using Format command, the Formatter will strip n
lines from end of the Input Text box. You can use it to
remove comment lines, etc.
- Strip 'n' Chars From Start:
When using Format command, the Formatter will strip n
characters from start of every line. You can use it to remove memory addresses,
comment delimiters, etc.
- Strip 'n' Chars From End:
When using Format command, the Formatter will strip n
characters from end of every line. You can use it to remove comment delimiters,
etc.
- Strip All Occurrence From Input Text:
When using Format command, the Formatter will strip all
occurrences of the text from Input Text box. You can use
it to remove number prefixes, unusual delimiters, etc.
- Input Text:
This edit box shows the text to be formatted.
- Input Text From File:
You can click the button to input text from a file.
- Format:
You can click the button to format the input text according
to the parameters you have specified. You can change the parameters and repeat the
action, and you can reset input text by clicking the
Reset button.
- Reset:
You can click the button to reset the input text to its initial value.
- Decode Base64 (Text):
You can click the button to decode the content that is regarded as base64
encoded text. You can reset the input text by clicking the
Reset button.
- Decode Base64 (Hex):
You can click the button to decode the content that is regarded as base64
encoded hex-bytes. You can reset input text by clicking the
Reset button.
- Number System:
You can select Hexadecimal, Decimal, Octal, or Binary
to tell the Formatter what number system is in the
Input Text box.
- Number Separator:
You can define the separator between two numbers in Input Text
box by selecting Comma, Space, Tab, or Semicolon
button. Or define a special separator by selecting Other button and
specifying a character in Separator Character box.
To know formatting order
The Formatter formats the ASCII text in the Input Text box
by the following order:
- Strips several lines from start.
- Strips several lines from end.
- Strips several characters from start of every line.
- Strips several characters from end of every line.
- 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:
- Picks every number from the formatted text by current
Number Separator.
- Converts every number from current Number System
to hexadecimal system.
- Combines all converted hex numbers according to their original occurrence.
- 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:
-
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.
-
Specify the formatting parameters to fit your input text.
-
Click Format to start a formatting process.
-
Click Reset to reset your input text to its initial value.
-
Repeat 2 to 4 to get a desired formatted text.
-
Click Ok to convert the formatted text to a space-separated list of hex-bytes.
How to format a piece of c-source code?
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:
- Paste the memory dump to the Input Text box.
- Set Strip 'n' Chars From Start to 10.
- Set other stripping options to 0.
- Click Format to format the code.
- Select Hexadecimal to specify the number system.
- Select Space to specify the separator between two numbers.
- 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:
- Paste the decimal prime to Input Text box.
- Select Decimal to specify the number system.
- Click Ok to convert the decimal prime to a space-separated list of hex bytes.
|
|