Skip to main content

get_decimal_range

Function get_decimal_range 

Source
pub fn get_decimal_range(
    value: &str,
) -> Result<DecimalRange, InsertableIndexError>
Expand description

Calculates the decimal range used for indexing a number or quantity, based on the precision of the input value.

ยงErrors

Returns InsertableIndexError::FailedDowncast if value cannot be parsed as an f64.