Click here to Skip to main content
14,664,450 members
Home » Discussions » C#
   

C#

 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor24-Aug-20 0:35
MemberExoskeletor24-Aug-20 0:35 
GeneralRe: How to calculate in c# the possibility of this game Pin
Richard MacCutchan24-Aug-20 1:04
mveRichard MacCutchan24-Aug-20 1:04 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor24-Aug-20 1:10
MemberExoskeletor24-Aug-20 1:10 
GeneralRe: How to calculate in c# the possibility of this game Pin
Eddy Vluggen24-Aug-20 12:52
professionalEddy Vluggen24-Aug-20 12:52 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor24-Aug-20 23:22
MemberExoskeletor24-Aug-20 23:22 
GeneralRe: How to calculate in c# the possibility of this game Pin
Luc Pattyn24-Aug-20 7:48
sitebuilderLuc Pattyn24-Aug-20 7:48 
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor24-Aug-20 23:22
MemberExoskeletor24-Aug-20 23:22 
GeneralRe: How to calculate in c# the possibility of this game Pin
trønderen26-Aug-20 0:50
Membertrønderen26-Aug-20 0:50 
Certainly - and you would have an overflow exception as well. Unless you deliberately overlook it.

If you don't specify any handling, but some default handler is called, it depends on this handler where execution continues. Maybe the storing of the (overflowed) result is skipped. If the sum variable was initially zero it may still be zero, if nothing is stored.

Then: A factorial is never negative. So is it appropriate handle it as signed value at all? (You may still have an overflow, but if you ignore it, you have a true wraparound effect, like your car odometer)
GeneralRe: How to calculate in c# the possibility of this game Pin
Exoskeletor23-Aug-20 19:23
MemberExoskeletor23-Aug-20 19:23 
QuestionHow do I load a block on a form at startup Pin
Brian_TheLion22-Aug-20 18:56
MemberBrian_TheLion22-Aug-20 18:56 
AnswerRe: How do I load a block on a form at startup Pin
BillWoodruff22-Aug-20 19:12
mveBillWoodruff22-Aug-20 19:12 
AnswerRe: How do I load a block on a form at startup Pin
OriginalGriff22-Aug-20 20:48
mveOriginalGriff22-Aug-20 20:48 
GeneralRe: How do I load a block on a form at startup Pin
Brian_TheLion23-Aug-20 14:33
MemberBrian_TheLion23-Aug-20 14:33 
AnswerRe: How do I load a block on a form at startup Pin
Luc Pattyn23-Aug-20 2:49
sitebuilderLuc Pattyn23-Aug-20 2:49 
AnswerRe: How do I load a block on a form at startup Pin
Gerry Schmitz23-Aug-20 6:48
mveGerry Schmitz23-Aug-20 6:48 
GeneralRe: How do I load a block on a form at startup Pin
Brian_TheLion24-Aug-20 17:03
MemberBrian_TheLion24-Aug-20 17:03 
QuestionCreating a Windows form program using C# 8.0 Pin
Brian_TheLion22-Aug-20 20:30
MemberBrian_TheLion22-Aug-20 20:30 
SuggestionRe: Creating a Windows form program using C# 8.0 Pin
Richard MacCutchan22-Aug-20 21:05
mveRichard MacCutchan22-Aug-20 21:05 
GeneralRe: Creating a Windows form program using C# 8.0 Pin
Brian_TheLion23-Aug-20 0:34
MemberBrian_TheLion23-Aug-20 0:34 
GeneralRe: Creating a Windows form program using C# 8.0 Pin
Richard MacCutchan23-Aug-20 2:00
mveRichard MacCutchan23-Aug-20 2:00 
GeneralRe: Creating a Windows form program using C# 8.0 Pin
Dave Kreskowiak23-Aug-20 4:07
mveDave Kreskowiak23-Aug-20 4:07 
GeneralRe: Creating a Windows form program using C# 8.0 Pin
Brian_TheLion23-Aug-20 14:30
MemberBrian_TheLion23-Aug-20 14:30 
GeneralRe: Creating a Windows form program using C# 8.0 Pin
Dave Kreskowiak23-Aug-20 18:38
mveDave Kreskowiak23-Aug-20 18:38 
GeneralRe: Creating a Windows form program using C# 8.0 Pin
Brian_TheLion24-Aug-20 16:55
MemberBrian_TheLion24-Aug-20 16:55 
AnswerRe: Creating a Windows form program using C# 8.0 Pin
Mycroft Holmes23-Aug-20 12:22
professionalMycroft Holmes23-Aug-20 12:22 

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.