Click here to Skip to main content
16,006,426 members
Home / Discussions / C#
   

C#

 
QuestionNumeric formatting question Pin
bscaer27-Feb-09 6:58
bscaer27-Feb-09 6:58 
AnswerRe: Numeric formatting question Pin
led mike27-Feb-09 7:20
led mike27-Feb-09 7:20 
GeneralRe: Numeric formatting question Pin
bscaer27-Feb-09 7:24
bscaer27-Feb-09 7:24 
GeneralRe: Numeric formatting question Pin
led mike27-Feb-09 7:37
led mike27-Feb-09 7:37 
GeneralRe: Numeric formatting question Pin
PIEBALDconsult27-Feb-09 7:59
mvePIEBALDconsult27-Feb-09 7:59 
AnswerRe: Numeric formatting question [modified] Pin
PIEBALDconsult27-Feb-09 7:30
mvePIEBALDconsult27-Feb-09 7:30 
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 
Glad to be of service.


I was also just looking for a solution using my ApplyFormat[^] method, but no joy.

I had hoped that this would do it:

System.Console.WriteLine (    2009.ApplyFormat ( "' '+;-''#####0;#####0" ) ) ;
System.Console.WriteLine ( (-2009).ApplyFormat ( "' '+;-''#####0;#####0" ) ) ;


Apparently the number sign (#) format character doesn't perform padding. Mad | :mad:
(Apparently its only purpose is to result in an empty string when the value is zero. Yeah, like that's useful. Roll eyes | :rolleyes: )

I guess that means I can add more functionality to my method to support it. Yippee, something to do.
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 
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 

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.