Pass &:to_f as an argument to collect instead of a block