NumberWithFuzziness

com.phasmidsoftware.number.expression.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]]
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