Execution problems with comm command

I tried to compare two sorted files with comm command which contain floating values as:

RECT 0 9.8 8.70 7.8 in first file & RECT 0 9.80 8.7 7.80 in second file.

comm -3 first_file second_file should give a empty file but it does not.

Is there a way to compare these two files correctly such that numerical values should be treated as numeral & not as text ?

First sort the files and then run a comm command

The lines are already sorted.
Still it is not working. Problem may be due to mistmatch in exact syntax. Actually in first file values is 9.8 and in another file it is 9.80

Is there any command which takes 9.8 and 9.80 equal?

as per my knowledge there is no command tht might help you with what you are trying to do. (9.8 and 9.80) will be treated differently by unix.

bt if you are comparing two set of datas or two files. then you can write a customized script for yourself.
thats the only way i am able to think off.
but writting a script you gotta take care of all the occurances where decimal comes.

first, remove the ".0" from the files

sed 's/\.0//g' file1 > a
sed 's/\.0//g' file2 > b

sdiff -s a b

cheers,
Devaraj Takhellambam