Added float support and test cases