Scala Int >(x: Double) method with example
The >(x: Double) method is utilized to return true if the specified int value is greater than the double value.
Method Definition: (Int_Value).>(Double_Value)
Return Type: It returns true if the specified int value is greater than the double value.
Example #1:
object GfG
{
def main(args : Array[String])
{
val result = ( 65 ). > ( 10 )
println(result)
}
}
|
Example #2:
object GfG
{
def main(args : Array[String])
{
val result = ( 50 ). > ( 100 )
println(result)
}
}
|
Last Updated :
11 Nov, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...