Ad
  • Default User Avatar

    Rather not though, using sprintf is slower as well as pulling in extra code. Testing my solution, which is aestetically kind of not pretty honestly, against this solution using sprintf is over six times slower. Pulling in sprintf seems to be only about 100-200 bytes for me so not much of a trade off in codespace.

    But if developer time is more important than execution time it sure is efficient though.