In earlier versions of Scala, I used to be able to do something like this to get the minimum value:
val minValue = Seq[Float](0.3f, 0.5f, 0.1f, 0.8f).min
That seemed simple and easy to understand. In Scala 2.13.1, I get this error:
object DeprecatedFloatOrdering in object Ordering is deprecated (since 2.13.0): There are multiple ways to order Floats (Ordering.Float.TotalOrdering, Ordering.Float.IeeeOrdering). Specify one by using a local import, assigning an implicit val, or passing it explicitly. See their documentation for details.
I read about TotalOrdering and IeeeOrdering in the Scala doc and looked unsuccessfully for examples of how to use them, but I don't get it. Given my simple example, what is the new way to find the min and why can't it just default to earlier behavior if not specified?