Hacker News new | past | comments | ask | show | jobs | submit login

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.



That makes sense. Never really thought about that as a counting digits problem but yeah.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: