RealNumber

com.phasmidsoftware.number.expression.parse.BaseRationalParser.RealNumber
case class RealNumber(sign: Boolean, integerPart: String, maybeFractionalPart: Option[String], exponent: Option[String]) extends ValuableNumber

Attributes

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

Members list

Value members

Concrete methods

def components: (Boolean, String, Option[String], Option[String])
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

Concrete fields

val fractionalPart: String