FloatingPoint

com.phasmidsoftware.number.expression.parse.ExpressionParser.FloatingPoint
case class FloatingPoint(x: String) extends Factor

Represents a floating-point numerical factor within an expression.

The FloatingPoint class models a specific type of Factor where the value is defined by a floating-point number, represented as a string. The class provides parsing capabilities to convert this string representation into an Expression format using defined parsing logic.

Value parameters

x

the string representation of the floating-point number.

Attributes

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[Expression]

Computes a parsed value derived from the x property of the containing instance. Attempts to parse the string x using the provided parsing logic of self.apply.

Computes a parsed value derived from the x property of the containing instance. Attempts to parse the string x using the provided parsing logic of self.apply.

Attributes

Returns

a Try[Expression] containing the parsed result if the parsing succeeds, or a Failure if parsing fails.

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