shazbot may be long , but not 1000000000 or DateTime.Day . So, C # first performs int multiplication (which leads to overflow), and then passes it to long for storage in shazbot .
If you want to get the result of long , make one of them long , for example:
long shazbot = 1000000000L * DateTime.Day;
Edit: C # gives you a warning if you use l instead of l . Fixed.
Powerlord
source share