Re: [C#]Fibonacci Sequence
Hmm let's give it a try *opens C#*
Sec. plx
Re: [C#]Fibonacci Sequence
Quote:
Originally Posted by
EliteGM
Hmm let's give it a try *opens C#*
Sec. plx
use int instead of int64 if you are running on a 32bit OS.
Not sure, but I think int64 might not work on 32bit OS.
Re: [C#]Fibonacci Sequence
Ooh :P:
Idk how it works but those numbers are.. cool in some way :P:
Re: [C#]Fibonacci Sequence
int64 works on 32bit -_-
its 8 bytes number
Re: [C#]Fibonacci Sequence
No it does not. I tried it on my friends notebook and it did not went past in32 range. Variable can be int64 but the capability will not get past 32bit integer.
Re: [C#]Fibonacci Sequence
Quote:
Originally Posted by
Intelext
No it does not. I tried it on my friends notebook and it did not went past in32 range. Variable can be int64 but the capability will not get past 32bit integer.
Yes it certainly does, the name is Int64 for a very good reason, that reason being it's a 64bit integer. Regardless of whether you're on a 32 bit platform or a 64 bit, Int64 will always be 64 bits.
PHP Code:
using System;
class Test
{
public static void Main(string[] argv)
{
long int64 = 0x1000000000000000;
Console.WriteLine(int64 + 1);
Console.ReadLine();
}
}
Will work exactly the same regardless of whether or not you're using a 32 bit or 64 bit system.
Re: [C#]Fibonacci Sequence
Oh yes. You were right IDD. Sorry for my mistake. :)
I tested it and it was same. :)
Again, sorry for mistake. =)