NumberWithFuzziness

com.phasmidsoftware.number.core.parse.BaseNumberParser.NumberWithFuzziness
case class NumberWithFuzziness(realNumber: BaseNumberParser.this.RealNumber, fuzziness: Option[String], maybeExponent: Option[String]) extends ValuableNumber, WithFuzziness

Parser class to represent a number with fuzziness.

Value parameters

fuzziness

optional Gaussian fuzziness (as a String)--from a parenthetical number; if None, we have Box fuzziness (corresponding to "*").

maybeExponent

optional exponent (as a String).

realNumber

a representation of a real (decimal) number in String form.

Attributes

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

Members list

Value members

Concrete methods

def fuzz: Option[Fuzziness[Double]]

Retrieves an optional fuzziness value associated with this instance.

Retrieves an optional fuzziness value associated with this instance.

The fuzziness value, if present, provides information about the level of uncertainty or imprecision, modeled as a Fuzziness[Double].

Attributes

Returns

an Option containing the Fuzziness[Double] value if defined, or None if no fuzziness is specified.

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