scala.util.FromDigits.WithRadix
A subclass of FromDigits that also allows to convert whole number literals with a radix other than 10
Type parameters
- T
-
the numeric type that digit strings with arbitrary radix can be converted to
Attributes
- Source
-
FromDigits.scala
- Graph
-
- Supertypes
-
- Known subtypes
-
Members list
Converts digits string with given radix to number of type T. E.g. if radix is 16, digits a..f and A..F are also allowed.
Converts digits string with given radix to number of type T. E.g. if radix is 16, digits a..f and A..F are also allowed.
Value parameters
- digits
-
the string representation of the numeric literal to convert
- radix
-
the base for the number system (e.g. 10 for decimal, 16 for hexadecimal)
Attributes
- Source
-
FromDigits.scala
Converts digits string to value of type T digits can contain
Converts digits string to value of type T digits can contain
- sign
+ or -
- sequence of digits between 0 and 9
Value parameters
- digits
-
the string representation of the numeric literal to convert
Attributes
- Returns
-
the value of type T represented by the digit string
- Throws
-
- Source
-
FromDigits.scala