This time, I wrote a program that uses floating point number representation. Because I need to port the program to an architecture that has very inefficient floating point math implementation, I need to change all the computations to use fixed point instead.
One of the tasks is to locate all the occurances of floating point literal constant. This can be done by using the search command as follows:
/\(\d\+\.\d*\|\.\d\+\)\(e[+-]\?\d\+\)\?
|
Here’s an explanation: