Skip to main content

encode_groups

Function encode_groups 

Source
pub fn encode_groups(t: &Ticks, k_hi: Tier, k_lo: Tier) -> Result<Vec<u16>>
Expand description

Decimal group values for tiers k_hi down to k_lo, most significant first.

Appendix F: repeated divmod by 5^5 = 3125, one group per step. Digit-by- digit division by 5 MUST NOT be used — it would take 221 steps at full width instead of 45.