N
Trait N represents the Natural numbers, that's to say the integers from 0 to infinity.
Attributes
- Graph
-
- Supertypes
- Known subtypes
Members list
Value members
Inherited and Abstract methods
Converts the current instance to a Double representation. CONSIDER changing to maybeDouble returning Option[Double].
Converts the current instance to a Double representation. CONSIDER changing to maybeDouble returning Option[Double].
Attributes
- Returns
-
the Double value corresponding to the current instance
- Inherited from:
- R
Returns an optional instance of Q from this R value.
Returns an optional instance of Q from this R value.
Attributes
- Returns
-
an optional instance of
Qrepresenting this specifiedRvalue - Inherited from:
- R
Retrieves an optional instance of Z if it exists.
Retrieves an optional instance of Z if it exists.
Attributes
- Returns
-
an
Option[Z]that contains aZinstance if it's available, orNoneif not. - Inherited from:
- Q
Converts this instance into its integer representation.
Converts this instance into its integer representation.
Attributes
- Returns
-
the integer value corresponding to this instance
- Inherited from:
- Z
Converts this instance of Q to its corresponding rational representation.
Converts this instance of Q to its corresponding rational representation.
Attributes
- Returns
-
a Rational instance representing the current value
- Inherited from:
- Q