finished float refactoring using read in variables
Former-commit-id: d98b186899168b6b4bf456fbee64dea9431e99d6