Scala Int doubleValue() method with example Improve Improve Like Article Like Save Share Report The doubleValue() method is utilized to return the double value of the specified int value. Method Definition: def doubleValue(): Byte Return Type: It returns the double value of the given int value. Example #1: // Scala program of Int doubleValue // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying doubleValue method val result = (15).doubleValue // Displays output println(result) } } Output: 15.0 Example #2: // Scala program of Int doubleValue // method // Creating object object GfG { // Main method def main(args:Array[String]) { // Applying doubleValue method val result = (1586).doubleValue // Displays output println(result) } } Output: 1586.0 Last Updated : 30 Jan, 2020 Like Article Save Article Previous Scala Int isValidChar() method with example Next Scala Int byteValue() method with example Share your thoughts in the comments Add Your Comment Please Login to comment...