Skip to content

Tag Archives: Scala

In Scala, Byte is a 8-bit signed integer (equivalent to Java’s byte primitive type). The toFloat() method is utilized to convert the specified number into… Read More
In Scala, Byte is a 8-bit signed integer (equivalent to Java’s byte primitive type). The toChar() method is utilized to convert the specified number into… Read More
In Scala, Byte is a 8-bit signed integer (equivalent to Java’s byte primitive type). The toShort() method is utilized to convert the specified number into… Read More
Short, a 16-bit signed integer (equivalent to Java’s short primitive type) is a subtype of scala.AnyVal. The toShort() method is utilized to convert the specified… Read More
Short, a 16-bit signed integer (equivalent to Java’s short primitive type) is a subtype of scala.AnyVal. The toLong() method is utilized to convert the specified… Read More
Short, a 16-bit signed integer (equivalent to Java’s short primitive type) is a subtype of scala.AnyVal. The toInt() method is utilized to convert the specified… Read More
The toString() method is utilized to return the string representation of the specified value. Method Definition: def toString(): String Return Type: It returns the string… Read More
The toChar() method is utilized to convert the specified int number into char type value. Method Definition: (Number).toChar Return Type: It returns the converted char… Read More
The toShort() method is utilized to convert the specified int number into a short type value.  Method Definition: (Number).toShortReturn Type: It returns the converted short… Read More
The toLong() method is utilized to convert the specified int number into float long type value. Method Definition: (Number).toLong Return Type: It returns the converted… Read More
The toInt() method is utilized to convert the specified int number into float int type value.  Method Definition: (Number).toIntReturn Type: It returns the converted int… Read More
The toFloat() method is utilized to convert the specified int number into float data type value. Method Definition: (Number).toFloat Return Type: It returns the converted… Read More
The round() method is utilized to return the rounded value of the specified int value. This method is used to avoid accidental loss of precision… Read More
The hashCode() method is utilized to return hash value of the specified int value. Method Definition: def hashCode(): Int Return Type: It returns hash value… Read More
The equals(arg0: Any) method is utilized to return true if the two specified int value is equal else false. Method Definition: def equals(arg0: Any): Boolean… Read More