formatn
Formatn is a term used in programming to denote a numeric formatting operation implemented as a function or method often named formatn in sample code, libraries, or tutorials. It is not a formally standardized concept, but it commonly refers to producing a string representation of a numeric value according to a specified precision, width, or other formatting options.
Common usages fall into two patterns. In one, n specifies the number of digits after the decimal
In practice, formatn is often a wrapper around language-specific formatting facilities, such as string formatting functions
See also: numeric formatting, string formatting, printf, format, and locale-aware number representation.