O object

FromDigits

extends Object with Serializable

Supertypes

Object, Serializable

Members

object 

BigIntFromDigits

trait 

Decimal

[T]

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 ".".

trait 

Floating

[T]

A subclass of FromDigitsthat allows also to convert number literals containing a decimal point "." or an exponent ('e' | 'E')['+' | '-']digit digit*.

A subclass of FromDigitsthat allows also to convert number literals containing a decimal point "." or an exponent ('e' | 'E')['+' | '-']digit digit*.

abstract class 

FromDigitsException

The base type for exceptions that can be thrown from fromDigits conversions

The base type for exceptions that can be thrown from fromDigits conversions

class 

MalformedNumber

Thrown if digit string is not legal for the given type

Thrown if digit string is not legal for the given type

object 

MalformedNumber

Thrown if digit string is not legal for the given type

Thrown if digit string is not legal for the given type

class 

NumberTooLarge

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

object 

NumberTooLarge

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

class 

NumberTooSmall

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)

object 

NumberTooSmall

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)

trait 

WithRadix

[T]

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

private val 

zeroFloat

: Regex

def 

doubleFromDigits

( digits: String ) : Double

Convert digit string to Double number

Convert digit string to Double number

def 

floatFromDigits

( digits: String ) : Float

Convert digit string to Float number

Convert digit string to Float number

def 

intFromDigits

( digits: String radix: Int ) : Int

Convert digit string to Int number

Convert digit string to Int number

def 

intFromDigits$default$2

: Int

Convert digit string to Int number

Convert digit string to Int number

private def 

integerFromDigits

( digits: String radix: Int limit: Long ) : Long

Convert digits and radix to integer value (either int or Long) This is tricky because of the max negative value. Note: We cannot use java.lang.Integer.v...

Convert digits and radix to integer value (either int or Long) This is tricky because of the max negative value. Note: We cannot use java.lang.Integer.valueOf or java.lang.Long.valueOf since these do not handle unsigned hex numbers greater than the maximal value correctly.

def 

longFromDigits

( digits: String radix: Int ) : Long

Convert digit string to Long number

Convert digit string to Long number

def 

longFromDigits$default$2

: Int

Convert digit string to Long number

Convert digit string to Long number