Scala Float underlying() method with example
Last Updated :
30 Jan, 2020
The underlying() method is utilized to return the same specified float value.
Method Definition: def underlying(): AnyRef
Return Type: It returns the same specified float value.
Example #1:
object GfG
{
def main(args : Array[String])
{
val result = ( 5.0 ).underlying
println(result)
}
}
|
Example #2:
object GfG
{
def main(args : Array[String])
{
val result = ( 100.9 ).underlying
println(result)
}
}
|
Share your thoughts in the comments
Please Login to comment...