Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
FromDigits.type
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Floating[BigDecimal]trait Decimal[BigDecimal]trait FromDigits[BigDecimal]class Objecttrait Matchableclass AnyShow all
- Self type
-
BigDecimalFromDigits.type
Attributes
- Supertypes
- Self type
-
BigIntFromDigits.type
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 ".".
Attributes
- Supertypes
- Known subtypes
-
trait Floating[T]object BigDecimalFromDigits.type
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*
.
Attributes
- Supertypes
- Known subtypes
-
object BigDecimalFromDigits.type
The base type for exceptions that can be thrown from fromDigits
conversions
The base type for exceptions that can be thrown from fromDigits
conversions
Attributes
- Supertypes
-
class NumberFormatExceptionclass IllegalArgumentExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
Thrown if digit string is not legal for the given type
Thrown if digit string is not legal for the given type
Attributes
- Supertypes
-
class FromDigitsExceptionclass NumberFormatExceptionclass IllegalArgumentExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
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
Attributes
- Supertypes
-
class FromDigitsExceptionclass NumberFormatExceptionclass IllegalArgumentExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Thrown in case of numeric underflow (e.g. a non-zero floating point literal that produces a zero value)
Thrown in case of numeric underflow (e.g. a non-zero floating point literal that produces a zero value)
Attributes
- Supertypes
-
class FromDigitsExceptionclass NumberFormatExceptionclass IllegalArgumentExceptionclass RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
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
Attributes
- Supertypes
- Known subtypes
-
object BigIntFromDigits.type
Value members
Concrete methods
Convert digit string to Double number
Convert digit string to Double number
Value parameters
- digits
-
The string to convert
Attributes
- Throws
-
MalformedNumber
if digits is not a legal digit string for floating point numbers..
NumberTooLargeif the resulting number is infinite
NumberTooSmallif the resulting number is 0.0d, yet the digits string contains non-zero digits before the exponent.
Convert digit string to Float number
Convert digit string to Float number
Value parameters
- digits
-
The string to convert
Attributes
- Throws
-
MalformedNumber
if digits is not a legal digit string for floating point numbers.
NumberTooLargeif the resulting number is infinite
NumberTooSmallif the resulting number is 0.0f, yet the digits string contains non-zero digits before the exponent.
Convert digit string to Int number
Convert digit string to Int number
Value parameters
- digits
-
The string to convert
- radix
-
The radix
Attributes
- Throws
-
MalformedNumber
if digits is not a legal digit string. Legal strings consist only of digits conforming to radix, possibly preceded by a "-" sign.
NumberTooLargeif number does not fit within Int range
Convert digit string to Long number
Convert digit string to Long number
Value parameters
- digits
-
The string to convert
- radix
-
The radix
Attributes
- Throws
-
MalformedNumber
if digits is not a legal digit string. Legal strings consist only of digits conforming to radix, possibly preceded by a "-" sign.
NumberTooLargeif the resulting number does not fit within Long range