Scala Char *(x: Double) method with example
Last Updated :
03 Nov, 2019
The *(x: Double) method is utilized to find the product of the stated character value and ‘x’ of type Double.
Method Definition: def *(x: Double): Double
Return Type: It returns Double.
Example: 1#
object GfG
{
def main(args : Array[String])
{
val result = 'E' .*( 10.4311 )
println(result)
}
}
|
Example: 2#
object GfG
{
def main(args : Array[String])
{
val result = 'A' .*( 54.1233 )
println(result)
}
}
|
Share your thoughts in the comments
Please Login to comment...