Floating

scala.util.FromDigits.Floating
trait Floating[T] extends Decimal[T]

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

Attributes

Source
FromDigits.scala
Graph
Supertypes
trait Decimal[T]
trait FromDigits[T]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Inherited methods

def fromDigits(digits: String): T

Convert digits string to value of type T digits can contain - sign + or - - sequence of digits between 0 and 9

Convert digits string to value of type T digits can contain - sign + or - - sequence of digits between 0 and 9

Attributes

Throws

MalformedNumber if digit string is not legal for the given type

NumberTooLarge if value of result does not fit into T's range

NumberTooSmall in case of numeric underflow (e.g. a non-zero floating point literal that produces a zero value)

Inherited from:
FromDigits
Source
FromDigits.scala