Fixes incorrect logic in conditional
Updates value to float