pub fn round_decimals(digits: &[u8]) -> i64
TeX’s round_decimals (tex.web §102): the fraction .d₁d₂… of the decimal digits digits (the first 17 count), in scaled points, rounded half up.
round_decimals
.d₁d₂…
digits