Yeah, that and get it setup to read a file. But to get the larger powers of ten you basically need to use a BigInt library. For C that's usually GNU's GMP.
The problem with floating point is floating points are basically vibe numbers. I wonder how accurate it could be using it. It won't give you the exact answer.
I forgot my programming skills because I haven't used them in a while. Once I work on code, my memory will improve.
Try your hand at the fib challenge. What language did you write it back when you were active?
Here it is: https://github.com/generalram/learnc/blob/master/fibb.c I'm going to have to modernize it to modern C to handle the powers of ten.
Yeah, that and get it setup to read a file. But to get the larger powers of ten you basically need to use a BigInt library. For C that's usually GNU's GMP.
https://gmplib.org/ is that it?
Yep. That's it.
I figured a long wouldn't cut it, maybe a floating-point double, but I'll try the BigInt library.
The problem with floating point is floating points are basically vibe numbers. I wonder how accurate it could be using it. It won't give you the exact answer.
But it would be kind of cool to run it with both.
Yeah, scientific notation isn't accurate. I'll have to use GMP, and on the AMD Zen 5, it burns them out. So I have to be careful. https://gmplib.org/
For learning GMP/BigNum, they have a tutorial here: https://home.cs.colorado.edu/~srirams/courses/csci2824-spr14/gmpTutorial.html This is for other programmers who want to use BigNum in ANSI C.
You can always avoid computing them really high. I can run the heavy run on my machine. If that helps.
Microsoft Quick C. 1987.
I want all the knowledge and skills. I'm incorrigibly insatiable. But I have limits and distractions and priorities. What's an autodidact to do?
You are hungry for knowledge and skills, that is good, keep learning something new every day. For me, that's a good day if I learn something new.