Format Specifiers
Format specifiers are strings that specify how to apply formatting to a base type. They are typically used with formatting functions such as String.Format() or the ToString() method. Format specifiers can be used alone or with a format provider, which is discussed later. The .NET Framework provides a set of standard format specifiers for numeric, date, time, and enumeration types. When the standard format specifiers do not meet the need, you can apply custom format specifiers to the formatting functions.
Numeric Format Specifiers
Standard numeric format specifiers are used to format numeric types to string in predefined patterns. The format specifier takes the following form:
Ann
Where A is an alphabetic format specifier and ...
Get Delphi for .NET Developer’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.