WholeNumber

com.phasmidsoftware.number.expression.parse.BaseRationalParser.WholeNumber
See theWholeNumber companion object
case class WholeNumber(sign: Boolean, digits: String) extends ValuableNumber

A "Whole" number. According to this definition all integers (Z) are whole numbers. More mathematically speaking, the "whole" numbers are the Natural numbers (N) together with zero.

Value parameters

digits

the digits read in.

sign

whether the parser detected a minus sign.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def value: Try[Rational]

Evaluate this RationalNumber as a Try[Rational].

Evaluate this RationalNumber as a Try[Rational].

Attributes

Returns

a Try[Rational]

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product