Scala Float +(x: Int) method with example Last Updated : 03 Nov, 2019 Summarize Comments Improve Suggest changes Share Like Article Like Report The +(x: Int) method is utilized to return the sum of the specified float value and int value. Method Definition: (Float_Value).+(Int_Value) Return Type: It returns the sum of the specified float value and int value. Example #1: Scala // Scala program of Float +(x: Int) // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying +(x: Int) function val result = (6.0).+(5) // Displays output println(result) } } Output: 11.0 Example #2: Scala // Scala program of Float +(x: Int) // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying +(x: Int) function val result = (100.0).+(8) // Displays output println(result) } } Output: 108.0 Comment More infoAdvertise with us Next Article Scala Int +(x: Float) method with example K Kanchan_Ray Follow Improve Article Tags : Scala Scala Scala-Method Similar Reads Scala Int +(x: Float) method with example The +(x: Float) method is utilized to return the sum of the specified int value and float value. Method Definition: (Int_Value).+(Float_Value) Return Type: It returns the sum of the specified int value and float value. Example #1: Scala // Scala program of Int +(x: Float) // method // Creating objec 1 min read Scala Int -(x: Float) method with example The -(x: Float) method is utilized to return the difference of the specified int value and float value. Method Definition: (Int_Value).-(Float_Value) Return Type: It returns the difference of the specified int value and float value. Example #1: Scala // Scala program of Int -(x: Float) // method // 1 min read Scala Float -(x: Int) method with example The -(x: Int) method is utilized to return the difference of the specified float value and int value. Method Definition: (Float_Value).-(Int_Value) Return Type: It returns the difference of the specified float value and int value. Example #1: Scala // Scala program of Float -(x: Int) // method // Cr 1 min read Scala Float +(x: Long) method with example The +(x: Long) method is utilized to return the sum of the specified float value and long value. Method Definition: (Float_Value).+(Long_Value) Return Type: It returns the sum of the specified float value and long value. Example #1: Scala // Scala program of Float +(x: Long) // method // Creating ob 1 min read Scala Int +(x: Int) method with example The +(x: Int) method is utilized to return the sum of the specified first int value and second int value. Method Definition: (Int_Value).+(Int_Value)Return Type: It returns the sum of the specified first int value and second int value. Example #1: Scala // Scala program of Int +(x: Int) // method // 1 min read Scala Float +(x: Float) method with example The +(x: Float) method is utilized to return the sum of the specified first float value and second float value. Method Definition: (Float_Value).+(Float_Value) Return Type: It returns the sum of the specified first float value and second float value. Example #1: Scala // Scala program of Float +(x: 1 min read Like