# Crate lexicon_fractional_index[−][src]

## Functions

float64_approx converts a key as generated by key_between() to a float64. Because the range of keys is far larger than float64 can represent accurately, this is necessarily approximate. But for many use cases it should be, as they say, close enough for jazz.

key_between returns a key that sorts lexicographically between a and b. Either a or b can be empty strings. If a is empty it indicates smallest key, If b is empty it indicates largest key. b must be empty string or > a.

n_keys_between returns n keys between a and b that sorts lexicographically. Either a or b can be empty strings. If a is empty it indicates smallest key, If b is empty it indicates largest key. b must be empty string or > a.