add new floating point function
fix error in test
Merge pull request #1269 from dwightguth/float

add new floating point function