[tor-commits] [tor/master] Add a signal-safe decimal formatting function