Summary: This page is a printf
formatting cheat sheet or reference page. I originally created this cheat sheet for my own programming purposes, and then thought I would share it here.
A great thing about the printf
formatting syntax is that the format specifiers you can use are very similar — if not identical — between different languages, including C, C++, Java, Perl, PHP, Ruby, Scala, and others. This means that your printf
knowledge is reusable, which is a good thing.