Gurus,
I know this is probably a very elementary question, but I am at a loss. I have read in fields from two files. The format of the fields are inconsistent. They consist of a sign (+ or -) and a number. One file has a consistent format with decimals (period followed by two numbers). The other file may have one or two numbers after the period or no period and decimal numbers at all. For example:
File 1 File2
Field 1 +000000002746.26 +000000002746.26
Field 2 +000000000117.1 +000000000117.10
Field 3 +000000001105 +000000001105.00
I need to both compare these values and write them to a file in a standard format (sign, number, period, two decimal numbers).
Is there a simple way to do this?
Thanks,
gsdcrazy
I know this is probably a very elementary question, but I am at a loss. I have read in fields from two files. The format of the fields are inconsistent. They consist of a sign (+ or -) and a number. One file has a consistent format with decimals (period followed by two numbers). The other file may have one or two numbers after the period or no period and decimal numbers at all. For example:
File 1 File2
Field 1 +000000002746.26 +000000002746.26
Field 2 +000000000117.1 +000000000117.10
Field 3 +000000001105 +000000001105.00
I need to both compare these values and write them to a file in a standard format (sign, number, period, two decimal numbers).
Is there a simple way to do this?
Thanks,
gsdcrazy