Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
QuestionGoing Pass Limit of 64 bit Processor Pin
computerpublic17-Jul-14 2:30
computerpublic17-Jul-14 2:30 
C#
<pre>/*I am doing calculations and I am noticing that sometimes the arithmetic goes pass the limit of the 64 bit processor without me even realizing it. The number simple start calculating again from zero(0). Is there some sort of argument or exception that can notify the user when a calculation violates the limit of the processor and continue to calculate from zero(0) again.*/
 
using System;
using System.IO;
using System.Collections;
namespace check
{
    static class Program
    {
        static void Main(string[] args)
        {
            ulong increment = 2;
            for (ulong i = 0; i < 70; i++)
            {
                increment += i * increment;
                Console.WriteLine("{0}",increment);
            }

        }
    }
}


AnswerRe: Going Pass Limit of 64 bit Processor Pin
Piotr Bagazja17-Jul-14 2:40
Piotr Bagazja17-Jul-14 2:40 
GeneralRe: Going Pass Limit of 64 bit Processor Pin
computerpublic17-Jul-14 2:55
computerpublic17-Jul-14 2:55 
GeneralRe: Going Pass Limit of 64 bit Processor Pin
Piotr Bagazja17-Jul-14 3:05
Piotr Bagazja17-Jul-14 3:05 
AnswerRe: Going Pass Limit of 64 bit Processor Pin
OriginalGriff17-Jul-14 2:41
mveOriginalGriff17-Jul-14 2:41 
QuestionHow to save treeview in database ??? Pin
ATHIRA S17-Jul-14 0:22
ATHIRA S17-Jul-14 0:22 
AnswerRe: How to save treeview in database ??? Pin
OriginalGriff17-Jul-14 0:38
mveOriginalGriff17-Jul-14 0:38 
GeneralRe: How to save treeview in database ??? Pin
Rob Philpott17-Jul-14 1:21
Rob Philpott17-Jul-14 1:21 
GeneralRe: How to save treeview in database ??? Pin
OriginalGriff17-Jul-14 1:36
mveOriginalGriff17-Jul-14 1:36 
AnswerRe: How to save treeview in database ??? Pin
uvantavida17-Jul-14 0:38
uvantavida17-Jul-14 0:38 
AnswerRe: How to save treeview in database ??? Pin
Gerry Schmitz17-Jul-14 12:39
mveGerry Schmitz17-Jul-14 12:39 
GeneralRe: How to save treeview in database ??? Pin
Mycroft Holmes17-Jul-14 12:45
professionalMycroft Holmes17-Jul-14 12:45 
QuestionHow to save pdf file in database ??? Pin
ATHIRA S16-Jul-14 23:47
ATHIRA S16-Jul-14 23:47 
AnswerRe: How to save pdf file in database ??? Pin
uvantavida17-Jul-14 0:34
uvantavida17-Jul-14 0:34 
AnswerRe: How to save pdf file in database ??? Pin
Gerry Schmitz17-Jul-14 12:40
mveGerry Schmitz17-Jul-14 12:40 
QuestionHow to make windows form control DPI aware?? Pin
Vivek Warade16-Jul-14 20:42
Vivek Warade16-Jul-14 20:42 
AnswerRe: How to make windows form control DPI aware?? Pin
Richard MacCutchan16-Jul-14 22:45
mveRichard MacCutchan16-Jul-14 22:45 
AnswerRe: How to make windows form control DPI aware?? Pin
OriginalGriff16-Jul-14 23:19
mveOriginalGriff16-Jul-14 23:19 
Questionsend and receive command from serial port to textbox in c# Pin
Lethu Raj16-Jul-14 20:29
Lethu Raj16-Jul-14 20:29 
AnswerRe: send and receive command from serial port to textbox in c# Pin
Richard MacCutchan16-Jul-14 22:44
mveRichard MacCutchan16-Jul-14 22:44 
QuestionC# Problem Pin
Gaurav Shukla C#16-Jul-14 6:53
Gaurav Shukla C#16-Jul-14 6:53 
AnswerRe: C# Problem Pin
PIEBALDconsult16-Jul-14 7:18
mvePIEBALDconsult16-Jul-14 7:18 
AnswerRe: C# Problem Pin
Dave Kreskowiak16-Jul-14 7:46
mveDave Kreskowiak16-Jul-14 7:46 
AnswerRe: C# Problem Pin
OriginalGriff16-Jul-14 8:16
mveOriginalGriff16-Jul-14 8:16 
QuestionHow to display all textbox in datagridviewTextBox of datagridview using C#application Pin
ngthtra16-Jul-14 5:52
ngthtra16-Jul-14 5:52 

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.