Hello,
I have a file that has hundreds of integers and + symbols in it.
i.e. 45+14, 12+35, 98+12, etc.
As shown above, the numbers and + symbols are together, but I simply want the total to be shown instead of the two numbers.
One thing that makes it a little more difficult is that some of the numbers have a period "." or a bracket "(" to the right of the second digit (i.e. 98+12.01 or 98+12(... but I only want to add the 98+12 together.
To make things clear, I would like:
98+12.01 to be replaced by 110.01, and so on.
Any help is appreciated. This needs to be done in a big file, so it would be great if I could automate it some how.
I have a file that has hundreds of integers and + symbols in it.
i.e. 45+14, 12+35, 98+12, etc.
As shown above, the numbers and + symbols are together, but I simply want the total to be shown instead of the two numbers.
One thing that makes it a little more difficult is that some of the numbers have a period "." or a bracket "(" to the right of the second digit (i.e. 98+12.01 or 98+12(... but I only want to add the 98+12 together.
To make things clear, I would like:
98+12.01 to be replaced by 110.01, and so on.
Any help is appreciated. This needs to be done in a big file, so it would be great if I could automate it some how.