Decimal
scala.util.FromDigits.Decimal
trait Decimal[T] extends FromDigits[T]
A subclass of FromDigits that also allows to convert number literals containing a decimal point ".".
Attributes
- Source
- FromDigits.scala
- Graph
-
- Supertypes
- Known subtypes
-
trait Floating[T]object BigDecimalFromDigits
Members list
Value members
Inherited and Abstract methods
Convert digits string to value of type T digits can contain
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
NumberTooLargeif value of result does not fit into
T's rangeNumberTooSmallin case of numeric underflow (e.g. a non-zero floating point literal that produces a zero value)
- Inherited from:
- FromDigits
- Source
- FromDigits.scala
In this article