Number Format

From no name for this wiki
Jump to: navigation, search
string.Format("CHF {0}", value.ToString("###,###,##0.00000"));
 
 
string multiple = String.Format("0x{0:X} {0:E} {0:N}",
                                Int64.MaxValue);
Console.WriteLine(multiple);
// The example displays the following output: 
//      0x7FFFFFFFFFFFFFFF 9.223372E+018 9,223,372,036,854,775,807.00
<%# Eval("MengeLeft", "{0:,###,###,##0.0000}") %>