Click here to Skip to main content
15,795,231 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to connect instagram api Pin
OriginalGriff15-Sep-20 3:18
mvaOriginalGriff15-Sep-20 3:18 
GeneralRe: how to connect instagram api Pin
Richard MacCutchan15-Sep-20 4:12
mveRichard MacCutchan15-Sep-20 4:12 
GeneralRe: how to connect instagram api Pin
OriginalGriff15-Sep-20 4:44
mvaOriginalGriff15-Sep-20 4:44 
GeneralRe: how to connect instagram api Pin
Gerry Schmitz15-Sep-20 5:20
mveGerry Schmitz15-Sep-20 5:20 
AnswerRe: how to connect instagram api Pin
Richard MacCutchan14-Sep-20 0:09
mveRichard MacCutchan14-Sep-20 0:09 
Questionc# stupid severe issue loop ! Pin
Isawyouoo13-Sep-20 4:25
Isawyouoo13-Sep-20 4:25 
AnswerRe: c# stupid severe issue loop ! Pin
Richard MacCutchan13-Sep-20 5:06
mveRichard MacCutchan13-Sep-20 5:06 
AnswerRe: c# stupid severe issue loop ! Pin
OriginalGriff13-Sep-20 5:06
mvaOriginalGriff13-Sep-20 5:06 
It's floating point data: it's stored in binary, not decimal, and 0.1 decimal is not a "precise" value in floating point format: 15. Floating Point Arithmetic: Issues and Limitations[^]

If you format your output to two decimal places, it'll always look the same:
C#
for (float i = -5.0f; i < 5.0f; i += 0.1f)
    {
    Console.WriteLine($"{i:0.00}");
    }

"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!


modified 13-Sep-20 10:19am.

AnswerRe: c# stupid severe issue loop ! Pin
harold aptroot13-Sep-20 5:29
harold aptroot13-Sep-20 5:29 
GeneralRe: c# stupid severe issue loop ! Pin
Isawyouoo13-Sep-20 5:55
Isawyouoo13-Sep-20 5:55 
AnswerRe: c# stupid severe issue loop ! Pin
OriginalGriff13-Sep-20 6:18
mvaOriginalGriff13-Sep-20 6:18 
GeneralRe: c# stupid severe issue loop ! Pin
harold aptroot13-Sep-20 7:09
harold aptroot13-Sep-20 7:09 
AnswerRe: c# stupid severe issue loop ! Pin
Dave Kreskowiak13-Sep-20 7:00
mveDave Kreskowiak13-Sep-20 7:00 
GeneralRe: c# stupid severe issue loop ! Pin
Isawyouoo16-Feb-21 6:46
Isawyouoo16-Feb-21 6:46 
QuestionUnique correspondence for characters Pin
keeponfalling1213-Sep-20 3:07
keeponfalling1213-Sep-20 3:07 
AnswerRe: Unique correspondence for characters Pin
OriginalGriff13-Sep-20 5:07
mvaOriginalGriff13-Sep-20 5:07 
GeneralRe: Unique correspondence for characters Pin
keeponfalling1213-Sep-20 5:22
keeponfalling1213-Sep-20 5:22 
GeneralRe: Unique correspondence for characters Pin
OriginalGriff13-Sep-20 5:54
mvaOriginalGriff13-Sep-20 5:54 
AnswerRe: Unique correspondence for characters Pin
trønderen13-Sep-20 5:33
trønderen13-Sep-20 5:33 
AnswerRe: Unique correspondence for characters Pin
Gerry Schmitz13-Sep-20 6:58
mveGerry Schmitz13-Sep-20 6:58 
GeneralRe: Unique correspondence for characters Pin
keeponfalling1214-Sep-20 5:05
keeponfalling1214-Sep-20 5:05 
QuestionHow to add Key and MergeField dynamically into WordProcessing document through C# program Pin
Ganapatisb10-Sep-20 23:30
Ganapatisb10-Sep-20 23:30 
SuggestionRe: How to add Key and MergeField dynamically into WordProcessing document through C# program Pin
Richard MacCutchan10-Sep-20 23:37
mveRichard MacCutchan10-Sep-20 23:37 
Rant[REPOST]: How to add Key and MergeField dynamically into WordProcessing document through C# program Pin
Richard Deeming10-Sep-20 23:49
mveRichard Deeming10-Sep-20 23:49 
QuestionRe: How to add Key and MergeField dynamically into WordProcessing document through C# program Pin
Eddy Vluggen12-Sep-20 17:02
professionalEddy Vluggen12-Sep-20 17:02 

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.