com.phasmidsoftware.number.expression.parse.ArithmeticParser.FloatingPoint
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
Reset zoom Hide graph Show graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Members list
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.
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.
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
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