Remove duplicate functionality between float and double
Merge pull request #1769 from wilr/doubleduplication

Remove duplicate functionality between float and double