3 ms·
Formatting numbers into strings is a pretty fundamental operation to need to do in your fast-path. For example formatting time into log lines. To do that we nee
by chrisseaton 5y ago
Formatting numbers into strings is a pretty fundamental operation to need to do in your fast-path. For example formatting time into log lines. To do that we need to know how many digits the milliseconds component has so we can pad it with zeros correctly. That's what motivated this particular question in our case.
- jedberg 5y agoThat makes sense. Never really thought about that as a counting digits problem but yeah.