convert max_size to float