You are not logged in.
Pages: 1
Man, this guy has got to be kidding.
So, I've made a small program (40.9 KB, GM7.gif ) that finds a certain Fibonacci Number.
I hope it's usefull and you will learn from it.
...
Please note:
If you use the code in your game, you must credit Chor.
The miraculous code in question:
repeat (placeholder - 1) {
finu = var1 + var2
var1 = var2
var2 = finu
}
Abusing forum power since 1986.
Offline
I can't even articulate words to describe what I'm feeling.
Offline
Maybe he only just learned that at school? I've seen worse.
I'm sure there are still people running around on the GMC thinking that their
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
is 'God's gift to game making!'
or that combining a few functions counts as a script.
eg.
//draw_set_everything(color,alpha,font,halign,valign)
draw_set_color(argument0);
draw_set_alpha(argument1);
draw_set_font(argument2);
draw_set_halign(argument3);
draw_set_valign(argument4);
Offline
Hehehe, Yourself busted the guy. I thought the claim of the 92nd Fibonacci number was bullshit. When I did a version of this script, I think I found that GM7's precision could only handle the first 77.
Abusing forum power since 1986.
Offline
Technically you just have to find the first Fibonacci number greater than 2^53. The 80th Fibonacci number (14472334024676221) is that number. That's the highest it can accurately represent. I tested it (by adding 1 to it and seeing if it changed).
Offline
That script I posted is actually only accurate to the first 75. Rounding errors with the power function cause the Lucas form to fail at that point. I wonder if those 5 other numbers are worth switching to an iterative method.
Abusing forum power since 1986.
Offline
Pages: 1