ensure similarity values are floats