Scala Float to(end: Float, step: Float) method with example
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 arguments list and some step is also specified in the arguments list.
Method Definition: def to(end: Float, step: Float): Inclusive
Return Type: It returns the range.
NumericRange(0.0, 4.0, 8.0)
NumericRange(5.0, 9.0, 13.0, 17.0, 21.0, 25.0, 29.0)