FloatingPoint

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

The FloatingPoint case class extends the Factor abstraction and represents a factor that holds a floating-point value in string representation.

Value parameters

x

the string value representing a floating-point number to be parsed and utilized.

Attributes

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

Members list

Value members

Concrete methods

def show(i: Int): String

Returns a string representation of the class that combines a constant prefix with the current instance's x value.

Returns a string representation of the class that combines a constant prefix with the current instance's x value.

Value parameters

i

an integer input (not directly used in this implementation, but retained for method signature structure).

Attributes

Returns

a string in the format "GeneralNumber: " followed by the x value of the instance.

def value: Try[ArithmeticParser.this.T]

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