tests using float and double