Formatted Output

This lesson discusses features of the std.format module, which is a module inside Phobos, a standard library of D.

Formatted output #

std.format module is not about the core features of the D language. Like all modules that have the prefix std, std.format is a module inside Phobos, the standard library of D.
D’s input and output format specifiers are similar to the ones in the C language. The format specifiers and flags are summarized as follows:

Format specifiers and flags
Format specifiers and flags

We have been using functions like writeln with multiple parameters as necessary to print the desired output. The parameters would be converted to their string representations and then sent to the output. ...