jump to navigation

DataFormatString en ASP.NET 20 Octubre 2006

Posted by joelperez in ASP.NET, Programacion.
6 comments

DataFormatString = “{0: Format Pattern }”

Format Pattern Name Example
C or c Currency format $2,003.05
D or d Decimal format
(Works for integers only!)
2,003
E or e Scientific (exponential) format 2.003052e+003
F or f Fixed-point format 2003.05
G or g General format 2003.0515
N or n Number format 2,003.05
P or p Percent format 2,00305.15%
X or x Hexadecimal format
(Works with integers only!)
7D3