Available on crate features
parse-floats
or parse-integers
or write-floats
or write-integers
only.Expand description
The maximum digits that can be held in a u64 for a given radix without overflowing.
This is useful for 128-bit division and operations, since it can reduces the number of inefficient, non-native operations.
§Generation
See etc/step.py
for the script to generate the divisors and the
constants, and the division algorithm.
Functions§
- max_
step - Get the maximum number of digits that can be processed without overflowing.
- min_
step - Get the number of digits that can be always processed without overflowing.
- u64_
step - Calculate the number of digits that can be processed without overflowing a
u64
. Helper function since this is used for 128-bit division.