Test with float numbers as distances