Click here to Skip to main content
15,888,286 members
Home / Discussions / C#
   

C#

 
GeneralRe: Numeric formatting question Pin
bscaer27-Feb-09 7:36
bscaer27-Feb-09 7:36 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult27-Feb-09 8:29
mvePIEBALDconsult27-Feb-09 8:29 
GeneralRe: Numeric formatting question Pin
bscaer27-Feb-09 8:55
bscaer27-Feb-09 8:55 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult27-Feb-09 9:06
mvePIEBALDconsult27-Feb-09 9:06 
GeneralRe: Numeric formatting question Pin
Luc Pattyn27-Feb-09 10:00
sitebuilderLuc Pattyn27-Feb-09 10:00 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult27-Feb-09 10:03
mvePIEBALDconsult27-Feb-09 10:03 
GeneralRe: Numeric formatting question Pin
Dan Neely27-Feb-09 10:36
Dan Neely27-Feb-09 10:36 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult28-Feb-09 4:36
mvePIEBALDconsult28-Feb-09 4:36 
I appears that the formats themselves don't pad (other than with zeroes), that padding is handled by the WriteLine, string.Format, etc. that calls it.

I assume that the creators of the formatters decided that if the caller was going to do the padding, then they didn't need to. Which makes sense, but there are cases when the caller isn't going to do the padding so the formatter should be able to.

Because my ApplyFormat method is a caller of formatting, I now have to decide how best to allow the user to specify padding.
I'm thinking I should follow Microsoft's lead and allow the format to be prefixed with "n:" to specify a minimum width of n characters.
GeneralRe: Numeric formatting question Pin
Dan Neely27-Feb-09 7:51
Dan Neely27-Feb-09 7:51 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult27-Feb-09 7:54
mvePIEBALDconsult27-Feb-09 7:54 
AnswerRe: Numeric formatting question Pin
Luc Pattyn27-Feb-09 8:33
sitebuilderLuc Pattyn27-Feb-09 8:33 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult27-Feb-09 8:50
mvePIEBALDconsult27-Feb-09 8:50 
GeneralRe: Numeric formatting question Pin
bscaer3-Mar-09 11:02
bscaer3-Mar-09 11:02 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult3-Mar-09 12:25
mvePIEBALDconsult3-Mar-09 12:25 
AnswerRe: Numeric formatting question Pin
Ennis Ray Lynch, Jr.27-Feb-09 8:13
Ennis Ray Lynch, Jr.27-Feb-09 8:13 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult27-Feb-09 9:11
mvePIEBALDconsult27-Feb-09 9:11 
AnswerRe: Numeric formatting question [modified] Pin
PIEBALDconsult28-Feb-09 9:03
mvePIEBALDconsult28-Feb-09 9:03 
QuestionOne Assembly Versus Multiple Assemblies Pin
MarkB12327-Feb-09 6:46
MarkB12327-Feb-09 6:46 
AnswerRe: One Assembly Versus Multiple Assemblies Pin
led mike27-Feb-09 7:17
led mike27-Feb-09 7:17 
GeneralRe: One Assembly Versus Multiple Assemblies Pin
Dan Neely27-Feb-09 7:53
Dan Neely27-Feb-09 7:53 
GeneralRe: One Assembly Versus Multiple Assemblies Pin
MarkB12327-Feb-09 8:07
MarkB12327-Feb-09 8:07 
QuestionVS2005 C# error message 1)"starting a second loop on a single thread is not a valid operation" or 2)"Child list for field Authors cannot be created" (many-to-many relationship) Pin
Diana Rhoades27-Feb-09 6:44
Diana Rhoades27-Feb-09 6:44 
AnswerRe: VS2005 C# error message 1)starting a second message on a single thread or 2)"Child list for field Authors cannot be created" Pin
led mike27-Feb-09 7:27
led mike27-Feb-09 7:27 
GeneralRe: VS2005 C# error message 1)starting a second message on a single thread or 2)"Child list for field Authors cannot be created" Pin
Diana Rhoades27-Feb-09 8:40
Diana Rhoades27-Feb-09 8:40 
GeneralRe: VS2005 C# error message 1)starting a second message on a single thread or 2)"Child list for field Authors cannot be created" Pin
led mike27-Feb-09 10:35
led mike27-Feb-09 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.