ChrisVilches / cpdiff

File difference tool for competitive programming.
7 stars 0 forks source link

0.0 == 0.000000 (should be approximate) #4

Open ChrisVilches opened 2 years ago

ChrisVilches commented 2 years ago

0.0 when compared to 0.000000 gets "identical", but it should be "approximate".

One way to solve it is by adding a last check to see if the strings are the same. If the numbers are identical but the strings are different, then the result is changed from identical to approximate. But not sure if this has other unwanted secondary effects.