Replaced to_f with Float