ParseableDouble

com.phasmidsoftware.tableparser.core.parse.Parseable.ParseableDouble
See theParseableDouble companion object
trait ParseableDouble extends Parseable[Double]

Parser of Double.

Attributes

Companion
object
Graph
Supertypes
trait Parseable[Double]
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def parse(s: String, optModifier: Option[String]): Try[Double]

Parses the given string into a Double, optionally using a modifier to adjust parsing behavior. If the parsing fails due to an invalid Double format or the string being empty, a failure with an appropriate exception is returned.

Parses the given string into a Double, optionally using a modifier to adjust parsing behavior. If the parsing fails due to an invalid Double format or the string being empty, a failure with an appropriate exception is returned.

Value parameters

optModifier

an optional string modifier that might affect the parsing logic (though it is unused in this implementation).

s

the input string to be parsed.

Attributes

Returns

a Try[Double] representing the successful parse result or a failure if parsing is invalid.