Format string, integer with leading zeros May 9, 2023 by Tarik Use the format string "img_%03d.jpg" to get decimal numbers with three digits and leading zeros.