Formats the numeric value {0} to a text value according to the format specified by {1}. The format is a single character ...

Formats the numeric value {0} to a text value according to the format specified by {1}. The format is a single character code optionally followed by a number precision specifier.
 The following character codes may be used for {1}.
      
  • "D" or "d": (Decimal) Formats the result as integer digits. The precision specifier controls the number of digits in the output.
  • "E" or "e": (Exponential [scientific]) Exponential notation. The precision specifier controls the maximum number of decimal digits (default is 6).
  • "F" or "f": (Fixed-point) Integral and decimal digits.
  • "G" or "g": (General) Most compact form of either fixed-point or scientific.
  • "N" or "n": (Number) Integral and decimal digits with group separators and a decimal separator.
  • "P" or "p": (Percent) Number multiplied by 100 and displayed with a percent symbol.
  • "R" or "r": (Round-trip) A text value that can round-trip an identical number. The precision specifier is ignored.
  • "X" or "x": (Hexadecimal) A hexadecimal text value.