float conversion working