Skip to content

Tag Archives: Scala

The toOctalString() method is utilized to return the octal form of the specified integer value. Method Definition: def toOctalString: String Return Type: It returns the… Read More
The toHexString() method is utilized to return the hexa decimal form of the specified integer value. Method Definition: def toHexString: String Return Type: It returns… Read More
The toBinaryString() method is utilized to return the binary form of the specified integer value. Method Definition: def toBinaryString: String Return Type: It returns the… Read More
The to(end: FLoat, step: Float) method is utilized to return a range from the stated float value to the ‘end’, which is given in the… Read More
Short, a 16-bit signed integer (equivalent to Java’s short primitive type) is a subtype of scala.AnyVal. The toByte() method is utilized to convert the specified… Read More
The to(end: int, step: int) method is utilized to return a range from the stated integer to the ‘end’, which is given in the arguments… Read More
In Scala, Byte is a 8-bit signed integer (equivalent to Java’s byte primitive type). The toInt() method is utilized to convert the specified number into… Read More
The to(end: Int) method is utilized to return a range from the stated int to the ‘end’, which is given in the arguments list but… Read More
The signum() method is utilized to return 1 for positive specified number, -1 for negative specified number and 0 for 0 specified value. Method Definition:… Read More
The self() method is utilized to return the same value which has been specified.  Method Definition: (Value).selfReturn Type: It returns true the same value which… Read More
The min() method is utilized to return the minimum value of the two specified int numbers.  Method Definition: (First_Number).min(Second_Number)Return Type: It returns true the minimum… Read More
The max() method is utilized to return the maximum value of the two specified int numbers. Method Definition: (First_Number).max(Second_Number) Return Type: It returns true the… Read More
The >>(x: Int) method is utilized to return a value which is the result of the int value right bit shifting by the specified int… Read More
The >>(x: Long) method is utilized to return a value which is the result of the int value right bit shifting by the specified long… Read More
The >>(x: Double) method is utilized to return a value which is the result of the int value right bit shifting by the specified double… Read More