I have text files that contain many numeric values; and I want to do arithmetic (adding offsets) to the numbers.
Finding the numeric text, converting it to Double and doing the math is the easy part. But I want the format of the output to match the format of the original.
The format of the original will be between 0 and 3 digits after the decimal point. I could just check the number of numeric characters to the right of the period,
but in the back of my head, I'm wondering if there's a more clever way.