Refactorying float type