All tests are passed.There is unexpected behaviour with floating points