engle
Member
Alas, the exit value of a C program in POSIX is only the last 8 bits, even though the return value from main() is an int. I hope you aren't saying the closing price will be $192!
Exit status - Wikipedia
It is legal to return 448 since it fits in an 'int'. It is up to the parent process that forked & executed the child to retrieve it:
"In Unix and other POSIX-compatible systems, the parent process can retrieve the exit status of a child process using the wait() family of system calls defined in wait.h. [6]. Of these, the waitid() [7] call retrieves the full 32-bit exit status, but the older wait() and waitpid() [8] calls retrieve only the least significant 8 bits of the exit status." - Wikipedia
I'm using waitid(), while you are using the classic wait() or waitpid(), so we are both correct!
The max TSLA price my code can return is $2,147,483,647 per share, which is a market capitalization of approximately $386,547,056,460,000,000 or $386 Quadrillion 2019 dollars. That is only about 297,000 times more than APPL is today.
Given the exponential growth of TSLA in several markets over enough time and enough inflation, AND if the planet is still habitable, AND if the 99% have not overthrown the 1%, then I predict we will reach this level before 2,200 A.D. It represents an average compound annual growth rate (CAGR) of +12.68% over 180 years. Assuming the average generational rate in my family is 30 years and none of them sell my stock, TSLA can reach this price in only 6 human generations: Great-Great-Great-Great-Great-Grandkids.
Almost makes we wish I was a Wall $treet $tock Analist so I could upload this crap on April 1st, 2020 and have Fox Business publish it as guidance!
Russ
PS. I reserve the right to revise my remarks to correct the math I did in my head.