Replace Pioneer Home   All Examples   Free Download

 New request --free  RSS: Replace Pioneer Examples

572.Advanced search and replace -- How to change all numbers in a text file to 2 decimial places?

User: editor -- 2010-07-24          << 571  573 >>
Hits: 371
Type: Advanced search and replace   
Search all Advanced search and replace examples
Description:
How to change all numbers in a text file to 2 decimial places?
Input Sample:
PI is 3.1415926
-2.5
100
33.1
Output Sample:
PI is 3.14
-2.50
100.00
33.10
Answer:
Hint: You need to Download and install "Replace Pioneer" on windows platform to finish following steps.
1. ctrl-o open source text file
2. ctrl-h open 'replace' window
* in 'search for pattern', enter:

* in 'replace with pattern', enter:

3. click 'Replace', done!

Screenshot 1:  Replace_Window


Similar Examples:
How to change all the letters in a text file to upper cases? (73%)
How to replace all the numbers in a text file to the square value? (71%)
How to change all numbers in a text file to the comma separated numbers? (70%)
How to convert all numbers from decimal to percentage? (65%)
How to change a binary file into text file with readable hexidecimal format? (61%)
How to convert the text from hex to decimal in a file? (61%)
How to extract all numbers in a text file, and provide a summary of number at the end? (61%)
How to reverse a text file by characters? (61%)

Check Demo of Advanced search and replace
Keywords:
how to change all numbers  dec  numbers  calc  cal  number  how to change  ber  num  change  text to numbers  change text  change 2  search and replace open source  search and replace text  replace pattern in text file  replace text pattern  search pattern