Scala Float min() method with example Improve Improve Like Article Like Save Share Report The min() method is utilized to return the minimum value of the two specified float numbers. Method Definition: (First_Number).min(Second_Number) Return Type: It returns the minimum value of the two specified float numbers. Example #1: // Scala program of Float min() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying min method val result = (5.9).min(9.0) // Displays output println(result) } } Output: 5.9 Example #2: // Scala program of Float min() // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying min method val result = (5.0).min(5.0) // Displays output println(result) } } Output: 5.0 Last Updated : 29 Oct, 2019 Like Article Save Article Previous Scala Int isValidChar() method with example Next Scala Queue takeRight() method with example Share your thoughts in the comments Add Your Comment Please Login to comment...