Bug 311431 (MONO29733) - Number formatting does not support templates.
Summary: Number formatting does not support templates.
Status: RESOLVED MOVED
Alias: MONO29733
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Enhancement
Target Milestone: ---
Assignee: Gonzalo Paniagua Javier
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-31 04:23 UTC by Miguel de Icaza
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:00:31 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"