Scala Int &(x: Double) method with example
The &(x: Double) method is utilized to return a result of the bitwise AND operation on the specified int value by the double value.
Method Definition: (Int_Value).&(Double_Value)
Return Type: It returns a result of the bitwise AND operation on the specified int value by the double value.
Example #1:
object GfG
{
def main(args : Array[String])
{
val result = ( 10 ).&( 6 )
println(result)
}
}
|
Example #2:
object GfG
{
def main(args : Array[String])
{
val result = ( 10 ).&( 8 )
println(result)
}
}
|
Last Updated :
03 Nov, 2019
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...