How to display more than 6DP

I made a script that tells you the golden ratio by working it out and setting the text of a component to the value, it is working but it stops at 6dp and just gives me 1.618034, is there a way to make it display more than that many decimal places?

I believe the limit is 15dp

.ToString("F15");

How much precision do you need? You have float, double, and decimal built-in. Decimal has the most precision but not that much range.

If you need more precision than that, you can have it but you’ll have to do some work. Your best bet would be to find an open source implementation of BigRational and port that. There’s a Q&A about that here.