- Companion
- class
- Source
- FromDigits.scala
Type members
Classlikes
A subclass of FromDigits
that also allows to convert number
literals containing a decimal point ".".
A subclass of FromDigits
that also allows to convert number
literals containing a decimal point ".".
- Source
- FromDigits.scala
A subclass of FromDigits
that allows also to convert number
literals containing a decimal point "." or an
exponent ('e' | 'E')['+' | '-']digit digit*
.
A subclass of FromDigits
that allows also to convert number
literals containing a decimal point "." or an
exponent ('e' | 'E')['+' | '-']digit digit*
.
- Source
- FromDigits.scala
The base type for exceptions that can be thrown from
fromDigits
conversions
The base type for exceptions that can be thrown from
fromDigits
conversions
- Source
- FromDigits.scala
Thrown if digit string is not legal for the given type
Thrown if digit string is not legal for the given type
- Source
- FromDigits.scala
Thrown if value of result does not fit into result type's range
Thrown if value of result does not fit into result type's range
- Source
- FromDigits.scala
Thrown in case of numeric underflow (e.g.
Thrown in case of numeric underflow (e.g. a non-zero floating point literal that produces a zero value)
- Source
- FromDigits.scala
A subclass of FromDigits
that also allows to convert whole number literals
with a radix other than 10
A subclass of FromDigits
that also allows to convert whole number literals
with a radix other than 10
- Source
- FromDigits.scala
Value members
Concrete methods
Convert digit string to Double number
Convert digit string to Double number
- Value Params
- digits
The string to convert
- Throws
- MalformedNumber
if digits is not a legal digit string for floating point numbers..
- NumberTooLarge
if the resulting number is infinite
- NumberTooSmall
if the resulting number is 0.0d, yet the digits string contains non-zero digits before the exponent.
- Source
- FromDigits.scala
Convert digit string to Float number
Convert digit string to Float number
- Value Params
- digits
The string to convert
- Throws
- MalformedNumber
if digits is not a legal digit string for floating point numbers.
- NumberTooLarge
if the resulting number is infinite
- NumberTooSmall
if the resulting number is 0.0f, yet the digits string contains non-zero digits before the exponent.
- Source
- FromDigits.scala
Convert digit string to Int number
Convert digit string to Int number
- Value Params
- digits
The string to convert
- radix
The radix
- Throws
- MalformedNumber
if digits is not a legal digit string. Legal strings consist only of digits conforming to radix, possibly preceded by a "-" sign.
- NumberTooLarge
if number does not fit within Int range
- Source
- FromDigits.scala
Convert digit string to Long number
Convert digit string to Long number
- Value Params
- digits
The string to convert
- radix
The radix
- Throws
- MalformedNumber
if digits is not a legal digit string. Legal strings consist only of digits conforming to radix, possibly preceded by a "-" sign.
- NumberTooLarge
if the resulting number does not fit within Long range
- Source
- FromDigits.scala