Apply the rescaler function to the value.
If the rescaler is infallible, use the infallible function.
Otherwise, use the fallible function and validate the precision.
Parses the given string as a decimal with the given scale, returning the
unscaled representation in the decimal typeโs native integer (e.g. i32
for Decimal32Type, i256 for Decimal256Type).
Rescales a decimal value from (input_precision, input_scale) to
(output_precision, output_scale) and returns the converted number when it fits
within the output precision.
Cast a single floating point value to a decimal native with the given multiple.
Returns None if the value cannot be represented with the requested precision.