Node:Formats for numbers, Next:, Previous:Format directives, Up:Formatted output



Formats for numbers

These all use a single argument, which should be a number.

%pd ("decimal") Print the argument as a decimal integer using at least p degits. The default for p is 0.

%pf ("fixed-point float")

%pe ("exponential float")

%pg ("general float")