Parses a string into a BigDecimal with optional modification logic. If parsing fails, it attempts to recover and provides a meaningful error message, wrapped in a Failure.
Parses a string into a BigDecimal with optional modification logic. If parsing fails, it attempts to recover and provides a meaningful error message, wrapped in a Failure.
Value parameters
optModifier
an optional modifier that may influence the parsing logic.
s
the string to parse.
Attributes
Returns
a Try containing the parsed BigDecimal if successful, or a Failure with an error message wrapped in an exception.