Moto Hell - The Motorola Modding Community
November 23, 2024, 05:12:35 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The forum is no longer active and registration is disabled; however you can still fetch everything as guest.
 
   Home   Help Facebook Search Calendar Login Register  
Pages: 1 ... 6 7 [8] 9 10 11   Go Down
  Print  
Author Topic: Fibonacci  (Read 74202 times)
ZduneX25
Horrors fan :)
Global Moderator
Lord of the mod
*****

Karma: 267
Offline Offline

Posts: 3063


I've missed something


View Profile WWW
« Reply #105 on: March 29, 2009, 08:31:23 am »

10284683057613717413913
ufff
Logged

Z.d.u.n.e.X's Stuff: Personal Site | My skins
keaglez
Indonesian Motolover
PHD modder
***

Karma: 61
Offline Offline

Posts: 2562


http://jeffri.net


View Profile WWW
« Reply #106 on: March 29, 2009, 10:25:24 am »

16640966750620563662096

trying to create fibonacci program in php
Code:
function fibonacci($total)
{
for ($a = 2, $b = 0, $c = 1; $a < $total; $a++)
{
$en = $b + $c;
$b = $c;
$c = $en;
}
return $en;
}
but no, it can't count more than the 69th fibonacci number... :'(
Logged

Best regards,
Jeffri H.

PackPunk
Cool guy
PHD modder
***

Karma: 57
Offline Offline

Posts: 2215


ROKR User (Not the zombie)


View Profile
« Reply #107 on: March 29, 2009, 03:09:36 pm »

26925649808234281076009, still using Gate's calc :p
Logged

E398
ROKR E1
ROKR E8
Plants vs. Zombies
ZduneX25
Horrors fan :)
Global Moderator
Lord of the mod
*****

Karma: 267
Offline Offline

Posts: 3063


I've missed something


View Profile WWW
« Reply #108 on: March 30, 2009, 08:43:33 am »

43566616558854844738105 he
Logged

Z.d.u.n.e.X's Stuff: Personal Site | My skins
PackPunk
Cool guy
PHD modder
***

Karma: 57
Offline Offline

Posts: 2215


ROKR User (Not the zombie)


View Profile
« Reply #109 on: March 30, 2009, 08:53:27 am »

70492266367089125814114
Logged

E398
ROKR E1
ROKR E8
Plants vs. Zombies
ZduneX25
Horrors fan :)
Global Moderator
Lord of the mod
*****

Karma: 267
Offline Offline

Posts: 3063


I've missed something


View Profile WWW
« Reply #110 on: March 30, 2009, 08:57:34 am »

114058882925943970552219  Huh?
Logged

Z.d.u.n.e.X's Stuff: Personal Site | My skins
PackPunk
Cool guy
PHD modder
***

Karma: 57
Offline Offline

Posts: 2215


ROKR User (Not the zombie)


View Profile
« Reply #111 on: March 30, 2009, 09:18:20 am »

184551149293033096366333 Smiley
Logged

E398
ROKR E1
ROKR E8
Plants vs. Zombies
Exploited
Administrator
Ultimate modder
*****

Karma: 109
Offline Offline

Posts: 5153



View Profile WWW
« Reply #112 on: March 30, 2009, 11:29:17 am »

keaglez - you need "big int" libraries. It's very easy to do it in MySQL (there is BIGINT type of 22 digits)

The next number is:
298610032218977066918552
Logged

keaglez
Indonesian Motolover
PHD modder
***

Karma: 61
Offline Offline

Posts: 2562


http://jeffri.net


View Profile WWW
« Reply #113 on: March 31, 2009, 12:23:29 am »

483161181512010163284885

I see, I will look it... Cheesy

Hmm... this one works better, using sprintf to convert float to string
Code:
function fibonacci($total)
{
for ($a = 2, $b = 0, $c = 1; $a < $total; $a++)
{
$en = $b + $c;
$b = $c;
$c = $en;
}
return sprintf("%.0f", $en);
}
but well, the 80th numbers started to count wrong... Sad
Logged

Best regards,
Jeffri H.

ZduneX25
Horrors fan :)
Global Moderator
Lord of the mod
*****

Karma: 267
Offline Offline

Posts: 3063


I've missed something


View Profile WWW
« Reply #114 on: March 31, 2009, 01:47:21 pm »

781771213730987230203437
Logged

Z.d.u.n.e.X's Stuff: Personal Site | My skins
PackPunk
Cool guy
PHD modder
***

Karma: 57
Offline Offline

Posts: 2215


ROKR User (Not the zombie)


View Profile
« Reply #115 on: April 01, 2009, 05:02:35 am »

1264932395242997393488322
Logged

E398
ROKR E1
ROKR E8
Plants vs. Zombies
ZduneX25
Horrors fan :)
Global Moderator
Lord of the mod
*****

Karma: 267
Offline Offline

Posts: 3063


I've missed something


View Profile WWW
« Reply #116 on: April 01, 2009, 12:04:03 pm »

=
2046703608973984623691759
Logged

Z.d.u.n.e.X's Stuff: Personal Site | My skins
PackPunk
Cool guy
PHD modder
***

Karma: 57
Offline Offline

Posts: 2215


ROKR User (Not the zombie)


View Profile
« Reply #117 on: April 01, 2009, 03:15:04 pm »

3311636004216982017180081
Logged

E398
ROKR E1
ROKR E8
Plants vs. Zombies
ZduneX25
Horrors fan :)
Global Moderator
Lord of the mod
*****

Karma: 267
Offline Offline

Posts: 3063


I've missed something


View Profile WWW
« Reply #118 on: April 03, 2009, 09:25:14 am »

5358339613190966640871840
Logged

Z.d.u.n.e.X's Stuff: Personal Site | My skins
PackPunk
Cool guy
PHD modder
***

Karma: 57
Offline Offline

Posts: 2215


ROKR User (Not the zombie)


View Profile
« Reply #119 on: April 05, 2009, 07:46:23 pm »

8669975617407948658051921
Logged

E398
ROKR E1
ROKR E8
Plants vs. Zombies
Pages: 1 ... 6 7 [8] 9 10 11   Go Up
  Print  
 
Jump to:  

Design By Forum Hosting
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines