Learn how to remove the first n digits from a number in Scala using basic string manipulation techniques.
Also find me here:
Baeldung Author
Pedro Rijo
Software Engineer with 8y experience in fascinating startups and scale-ups. Backend developer who worked with many different programming languages, but amazed with Scala for many years. Open Source Maintainer. Some days I work as a full stack developer. I play with many different technologies.
Here's what I've written (so far):
Baeldung on Scala
- >All
- Scala Collections (24)
- Scala Strings (10)
- Scala Numbers (8)
- Scala IO (4)
- Scala Dates (2)
- Scala Basics (2)
- Build Tools (2)
- Scala Syntax (1)
- Scala Exceptions (1)
- Scala Core (1)
Removing a Substring From a String in Scala
Filed under Scala Strings
Learn how to remove a substring from a string in Scala.
Round a Number to the Nearest or Next Multiple of 10 in Scala
Filed under Scala Numbers
Learn how to round a number to the nearest or next multiple of 10 in Scala.
Different Ways to Format Numbers in Scala
Filed under Scala Numbers, Scala Strings
Learn different ways to format numbers in Scala.
Calculate the Average of a List in Scala
Filed under Scala Collections
Learn how to calculate the average of a list in Scala.
Check if Characters and Strings Are Alphanumeric in Scala
Filed under Scala Strings
Learn how to check if characters and strings are alphanumeric in Scala.
Convert Integers Between Octal and Decimal Representations in Scala
Filed under Scala Numbers
Learn how to convert integers between octal and decimal representations in Scala
Repeat a Character Multiple Times in Scala
Filed under Scala Strings
Learn how to repeat a character or several characters multiple times in Scala.
Check if All Elements in a List Are Equal in Scala
Filed under Scala Collections
Learn to check if all elements of a list are equal.