Modified String.to_float to not use :string