The .NET Compact Framework provides you with comprehensive facilities to format strings for output. In this section, you’ll see how to format various data types, including numeric types, date/time types, and enumerated types. You’ll also see how to provide culture-specific formatting.
This first section contains a brief introduction to concepts in .NET Compact Framework formatting, which involves format specifiers, format specifications, and format providers. In the following code fragment
double amount = 10.0/3.0; string myString = amount.ToString("F4");
the string "F4" is a format specifier and specifies that the value amount is to be formatted as fixed-point (F) with 4 digits ...