Replace Pioneer Home
All Examples
Free Download
all
Advanced search and replace
Replace text in multiple files
Regular expression replace
Batch file rename
Batch download
Text file parser
Text file splitter
Html text generator
Search replace binary
Random word generator
Count and statistics
Character encoding
Bin Hex Oct Dec converter
Text generator
Text sort
Text merge
Text data calculation
RSS: Replace Pioneer Examples
771.Text data calculation -- How to convert all numbers from decimal to percentage?
User:
editor -- 2011-04-28
<< 770
772 >>
Hits:
3556
Type:
Text data calculation
Search all
Text data calculation
examples
Description:
How to convert all numbers from decimal to percentage?
Input Sample:
0.8351
0.7222
0.1561
0.6611
1.0
Output Sample:
83.51%
72.22%
15.61%
66.11%
100.00%
Answer:
Hint: You need to
Download and install "Replace Pioneer"
on windows platform to finish following steps.
1. ctrl-o open file
2. ctrl-h open 'replace' window
* set 'search for pattern' to:
[\d\.]+
* set 'replace with pattern' to:
calc($match*100,".2f")%
3. click 'replace', done!
Screenshot 1: Replace_Window
Similar Examples:
How to change all numbers in a text file to 2 decimial places?
(65%)
How to convert the text from decimal to hex in a file?
(65%)
How to count the number of specified part in each line?
(63%)
How to convert the text from hex to decimal in a file?
(63%)
How to convert list of hexadecimal to binary ?
(62%)
How to batch change decimal numbers by rounding to 3 decimal places?
(59%)
How to change all the letters in a text file to upper cases?
(58%)
How to enclose all the odd number of lines with a pair of tags?
(58%)
Check Demo of
Text data calculation
Keywords:
decimal
toc
dec
tag
calculation
calcu
calculat
all numbers
100
how to convert
decimal numbers
search numbers
search data
replace convert
with numbers
replace with data
data replace
replace numbers