Scala Int doubleValue() method with example
Last Updated :
30 Jan, 2020
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:
object GfG
{
def main(args : Array[String])
{
val result = ( 15 ).doubleValue
println(result)
}
}
|
Example #2:
object GfG
{
def main(args : Array[String])
{
val result = ( 1586 ).doubleValue
println(result)
}
}
|
Share your thoughts in the comments
Please Login to comment...