Expand description
Handles parsing between decimal tokens received from the lexer into native Decimal75
Proof of SQL type.
Module for parsing an IntermediateDecimal
into a Decimal75
.
Structs§
- Precision
- limit-enforced precision
Enums§
- Decimal
Error - Errors related to decimal operations.
- Intermediate
Decimal Error - Errors related to the processing of decimal values in proof-of-sql
Functions§
- try_
convert_ intermediate_ decimal_ to_ scalar - Fallibly attempts to convert an
IntermediateDecimal
into the native proof-of-sql Scalar backing store. This function adjusts the decimal to the specifiedtarget_precision
andtarget_scale
, and validates that the adjusted decimal does not exceed the specified precision. If the conversion is successful, it returns theScalar
representation; otherwise, it returns aDecimalError
indicating the type of failure (e.g., exceeding precision limits).
Type Aliases§
- Decimal
Result - Result type for decimal operations.