Click here to Skip to main content
15,029,162 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to find average value for duplicate keys in Dictionary? Pin
OriginalGriff24-Jul-21 6:47
mveOriginalGriff24-Jul-21 6:47 
AnswerRe: How to find average value for duplicate keys in Dictionary? Pin
BillWoodruff28-Jul-21 3:11
mveBillWoodruff28-Jul-21 3:11 
QuestionEfficient method to build a CSV string Pin
Vikas Mishra Jul202123-Jul-21 10:46
MemberVikas Mishra Jul202123-Jul-21 10:46 
AnswerRe: Efficient method to build a CSV string Pin
Dave Kreskowiak23-Jul-21 11:59
mveDave Kreskowiak23-Jul-21 11:59 
AnswerRe: Efficient method to build a CSV string Pin
Richard Andrew x6423-Jul-21 12:18
professionalRichard Andrew x6423-Jul-21 12:18 
AnswerRe: Efficient method to build a CSV string Pin
Gerry Schmitz24-Jul-21 6:20
mveGerry Schmitz24-Jul-21 6:20 
QuestionHow to get double value in string format? Pin
Alex Dunlop23-Jul-21 7:48
MemberAlex Dunlop23-Jul-21 7:48 
AnswerRe: How to get double value in string format? Pin
OriginalGriff23-Jul-21 8:12
mveOriginalGriff23-Jul-21 8:12 
Try:
C#
int x = 95;
int y = 3;
string str = ((double) (x / y)).ToString("F2");
Or
C#
int x = 95;
int y = 3;
string str = ((double) x / (double) y).ToString("F2");
Depending on the result you wanted.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: How to get double value in string format? Pin
Alex Dunlop29-Jul-21 6:20
MemberAlex Dunlop29-Jul-21 6:20 
GeneralRe: How to get double value in string format? Pin
OriginalGriff29-Jul-21 6:32
mveOriginalGriff29-Jul-21 6:32 
GeneralRe: How to get double value in string format? Pin
Alex Dunlop29-Jul-21 6:48
MemberAlex Dunlop29-Jul-21 6:48 
GeneralRe: How to get double value in string format? Pin
OriginalGriff29-Jul-21 6:32
mveOriginalGriff29-Jul-21 6:32 
AnswerRe: How to get double value in string format? Pin
Richard MacCutchan23-Jul-21 8:59
mveRichard MacCutchan23-Jul-21 8:59 
GeneralRe: How to get double value in string format? Pin
Alex Dunlop29-Jul-21 6:21
MemberAlex Dunlop29-Jul-21 6:21 
GeneralRe: How to get double value in string format? Pin
Richard MacCutchan29-Jul-21 6:31
mveRichard MacCutchan29-Jul-21 6:31 
QuestionNotify Icon Context Menu Won't Go Away Pin
Richard Andrew x6422-Jul-21 13:19
professionalRichard Andrew x6422-Jul-21 13:19 
AnswerRe: Notify Icon Context Menu Won't Go Away Pin
Luc Pattyn22-Jul-21 16:25
sitebuilderLuc Pattyn22-Jul-21 16:25 
GeneralRe: Notify Icon Context Menu Won't Go Away Pin
Richard Andrew x6423-Jul-21 2:20
professionalRichard Andrew x6423-Jul-21 2:20 
GeneralRe: Notify Icon Context Menu Won't Go Away Pin
Richard Andrew x6423-Jul-21 12:27
professionalRichard Andrew x6423-Jul-21 12:27 
GeneralRe: Notify Icon Context Menu Won't Go Away Pin
Luc Pattyn23-Jul-21 12:37
sitebuilderLuc Pattyn23-Jul-21 12:37 
QuestionDataGirdView black screen Pin
Choi KyuJung21-Jul-21 16:08
MemberChoi KyuJung21-Jul-21 16:08 
AnswerRe: DataGirdView black screen Pin
OriginalGriff21-Jul-21 20:20
mveOriginalGriff21-Jul-21 20:20 
GeneralRe: DataGirdView black screen Pin
Choi KyuJung22-Jul-21 18:33
MemberChoi KyuJung22-Jul-21 18:33 
GeneralRe: DataGirdView black screen Pin
OriginalGriff22-Jul-21 19:12
mveOriginalGriff22-Jul-21 19:12 
AnswerRe: DataGirdView black screen Pin
Gerry Schmitz22-Jul-21 5:00
mveGerry Schmitz22-Jul-21 5:00 

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.