gm.compare: support for return values like 9.51582e-05
added test for compare