Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
QuestionAdd two zéro after a comma Pin
abbd16-Feb-09 1:07
abbd16-Feb-09 1:07 
GeneralRe: Add two zéro after a comma Pin
Kristian Sixhøj16-Feb-09 1:14
Kristian Sixhøj16-Feb-09 1:14 
AnswerRe: Add two zéro after a comma Pin
musefan16-Feb-09 1:14
musefan16-Feb-09 1:14 
GeneralRe: Add two zéro after a comma Pin
Pete O'Hanlon16-Feb-09 1:34
mvePete O'Hanlon16-Feb-09 1:34 
GeneralRe: Add two zéro after a comma Pin
musefan16-Feb-09 1:45
musefan16-Feb-09 1:45 
GeneralRe: Add two zéro after a comma Pin
Tony Pottier16-Feb-09 4:22
Tony Pottier16-Feb-09 4:22 
GeneralRe: Add two zéro after a comma Pin
musefan16-Feb-09 5:36
musefan16-Feb-09 5:36 
GeneralRe: Add two zéro after a comma Pin
Guffa16-Feb-09 5:15
Guffa16-Feb-09 5:15 
There's a one-liner for that too.

number+=number.Contains(',')?new String('0',number.indexOf(',')-number.Length+3):",00";

Wink | ;)

Despite everything, the person most likely to be fooling you next is yourself.

modified on Monday, February 16, 2009 4:58 PM

GeneralRe: Add two zéro after a comma Pin
musefan16-Feb-09 5:43
musefan16-Feb-09 5:43 
AnswerRe: Add two zéro after a comma Pin
stancrm16-Feb-09 1:21
stancrm16-Feb-09 1:21 
QuestionDynamically assign values to instance Pin
Stevo Z16-Feb-09 0:59
Stevo Z16-Feb-09 0:59 
AnswerRe: Dynamically assign values to instance Pin
musefan16-Feb-09 1:05
musefan16-Feb-09 1:05 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 1:15
Stevo Z16-Feb-09 1:15 
AnswerRe: Dynamically assign values to instance Pin
DaveyM6916-Feb-09 1:22
professionalDaveyM6916-Feb-09 1:22 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 1:25
Stevo Z16-Feb-09 1:25 
GeneralRe: Dynamically assign values to instance Pin
DaveyM6916-Feb-09 1:59
professionalDaveyM6916-Feb-09 1:59 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 2:11
Stevo Z16-Feb-09 2:11 
AnswerRe: Dynamically assign values to instance Pin
S. Senthil Kumar16-Feb-09 1:22
S. Senthil Kumar16-Feb-09 1:22 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 1:27
Stevo Z16-Feb-09 1:27 
GeneralRe: Dynamically assign values to instance Pin
S. Senthil Kumar16-Feb-09 1:55
S. Senthil Kumar16-Feb-09 1:55 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 2:13
Stevo Z16-Feb-09 2:13 
GeneralRe: Dynamically assign values to instance Pin
S. Senthil Kumar16-Feb-09 2:19
S. Senthil Kumar16-Feb-09 2:19 
GeneralRe: Dynamically assign values to instance Pin
Stevo Z16-Feb-09 2:31
Stevo Z16-Feb-09 2:31 
GeneralRe: Dynamically assign values to instance Pin
S. Senthil Kumar16-Feb-09 4:28
S. Senthil Kumar16-Feb-09 4:28 
AnswerRe: Dynamically assign values to instance Pin
Calin Tatar16-Feb-09 1:35
Calin Tatar16-Feb-09 1: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.