The golden ratio is a special relationship that can be related to the ratio between the different sizes of parts of a living organism.
Mathematically, this can be found by the following formula:
(1 + sq.root (5)) / 2)
Using any type of data, I could not store such a value. doubleis the best, but I cannot use 20 decimal places using it.
So, I thought, can I find the last digits of the relationship after calculating it, and then save it in some variable and continue to do so. In the end, I could make it complete by combining the decimal places one by one.
example: from 1.61083, I would extract 3,0,8,0,1,6 and join it.
Nevertheless, I have problems, because even during the calculation, it does not use such an exact variable.
Can anyone help?
user3270268
source
share