given_FromDigits_PositiveInt

stdx.collections.PositiveInt$package.PositiveInt.given_FromDigits_PositiveInt
object given_FromDigits_PositiveInt extends FromDigits[PositiveInt]

Attributes

Graph
Supertypes
trait FromDigits[PositiveInt]
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

inline def fromDigits(digits: String): Int

Converts digits string to value of type T digits can contain

Converts 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)