Bugzilla – Bug 311431
Number formatting does not support templates.
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by miguel@ximian.com 2002-08-30 21:23:37 MST ---- The following format: (###)-###-#### Applied to this number: 1234567890 Should render: (123)-456-7890 Currently it renders: 1234567890 using System; class X { static void Main () { Console.WriteLine ("{0:(###)###-####}", 1234567890.0); } } ---- Additional Comments From gonzalo@ximian.com 2002-08-31 05:21:25 MST ---- Well, the number you put is a floating point number and support for formatting them is not in place. If you do: Console.WriteLine ("{0:(###)###-####}", 1234567890); it will work because it uses IntegerFormatter (the other one is done in an internal call that just do a g_strdup_printf or the like). So... Do you want me work on adding support for formatting floating point numbers custom formatting? ---- Additional Comments From lupus@ximian.com 2002-09-06 06:25:21 MST ---- *** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO25682 *** Unknown operating system other. Setting to default OS "Other". This bug was marked DUPLICATE in the database it was moved from. Changing resolution to "MOVED"