Click here to Skip to main content
15,879,184 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to connect instagram api Pin
OriginalGriff15-Sep-20 2:18
mveOriginalGriff15-Sep-20 2:18 
GeneralRe: how to connect instagram api Pin
Richard MacCutchan15-Sep-20 3:12
mveRichard MacCutchan15-Sep-20 3:12 
GeneralRe: how to connect instagram api Pin
OriginalGriff15-Sep-20 3:44
mveOriginalGriff15-Sep-20 3:44 
GeneralRe: how to connect instagram api Pin
Gerry Schmitz15-Sep-20 4:20
mveGerry Schmitz15-Sep-20 4:20 
AnswerRe: how to connect instagram api Pin
Richard MacCutchan13-Sep-20 23:09
mveRichard MacCutchan13-Sep-20 23:09 
Questionc# stupid severe issue loop ! Pin
Isawyouoo13-Sep-20 3:25
Isawyouoo13-Sep-20 3:25 
AnswerRe: c# stupid severe issue loop ! Pin
Richard MacCutchan13-Sep-20 4:06
mveRichard MacCutchan13-Sep-20 4:06 
AnswerRe: c# stupid severe issue loop ! Pin
OriginalGriff13-Sep-20 4:06
mveOriginalGriff13-Sep-20 4: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 4:29
harold aptroot13-Sep-20 4:29 
GeneralRe: c# stupid severe issue loop ! Pin
Isawyouoo13-Sep-20 4:55
Isawyouoo13-Sep-20 4:55 
AnswerRe: c# stupid severe issue loop ! Pin
OriginalGriff13-Sep-20 5:18
mveOriginalGriff13-Sep-20 5:18 
GeneralRe: c# stupid severe issue loop ! Pin
harold aptroot13-Sep-20 6:09
harold aptroot13-Sep-20 6:09 
AnswerRe: c# stupid severe issue loop ! Pin
Dave Kreskowiak13-Sep-20 6:00
mveDave Kreskowiak13-Sep-20 6:00 
GeneralRe: c# stupid severe issue loop ! Pin
Isawyouoo16-Feb-21 5:46
Isawyouoo16-Feb-21 5:46 
QuestionUnique correspondence for characters Pin
keeponfalling1213-Sep-20 2:07
keeponfalling1213-Sep-20 2:07 
AnswerRe: Unique correspondence for characters Pin
OriginalGriff13-Sep-20 4:07
mveOriginalGriff13-Sep-20 4:07 
GeneralRe: Unique correspondence for characters Pin
keeponfalling1213-Sep-20 4:22
keeponfalling1213-Sep-20 4:22 
GeneralRe: Unique correspondence for characters Pin
OriginalGriff13-Sep-20 4:54
mveOriginalGriff13-Sep-20 4:54 
AnswerRe: Unique correspondence for characters Pin
trønderen13-Sep-20 4:33
trønderen13-Sep-20 4:33 
AnswerRe: Unique correspondence for characters Pin
Gerry Schmitz13-Sep-20 5:58
mveGerry Schmitz13-Sep-20 5:58 
GeneralRe: Unique correspondence for characters Pin
keeponfalling1214-Sep-20 4:05
keeponfalling1214-Sep-20 4:05 
QuestionHow to add Key and MergeField dynamically into WordProcessing document through C# program Pin
Ganapatisb10-Sep-20 22:30
Ganapatisb10-Sep-20 22:30 
SuggestionRe: How to add Key and MergeField dynamically into WordProcessing document through C# program Pin
Richard MacCutchan10-Sep-20 22:37
mveRichard MacCutchan10-Sep-20 22:37 
Rant[REPOST]: How to add Key and MergeField dynamically into WordProcessing document through C# program Pin
Richard Deeming10-Sep-20 22:49
mveRichard Deeming10-Sep-20 22:49 
QuestionRe: How to add Key and MergeField dynamically into WordProcessing document through C# program Pin
Eddy Vluggen12-Sep-20 16:02
professionalEddy Vluggen12-Sep-20 16: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.