.min for floating types is deprecated