parse
relationalai.semantics.std.numbers
parse(value: str, number: NumberConcept) -> ExpressionParse a string value as a number with the precision and scale of the number argument.
Parameters
Section titled “Parameters”
(valuestr) - The string value to parse.
(numberNumberConcept) - The NumberConcept specifying the target precision and scale.
Returns
Section titled “Returns”Expression- AnExpressioncomputing the parsed number. ReturnsNumber.
Examples
Section titled “Examples”Parse string using another number’s format:
>>> numbers.parse("999.99", Product.price)