Not able to store a very percise number in a float

Would anyone have any information on if it is possible to increase the limit of the size of the number I am trying to store in a float? I have tried to store the float of 6.67*10^-11 (approximation of the gravitational constant). I have tried by setting it with nodes doing math, I have tried outright setting it as the default value of the variable. I might be missing some information on unreal’s limits since this is the first project where I have come anywhere close to numbers this precise. It does seem to be a bit close to the decimal range of the 32 bit integer limit but (please correct me if im wrong) im pretty sure is unreal is a 64bit program and I have seem numbers bigger than the 32bit integer limit elsewhere in the program. Currently when I try to store the float, the value is always set to 0.

Any information about how to change the limit if there is one and if that is possible would be welcome or if there is another way or a better way of storing this value than a float.

Also, since I should probably include the version of unreal I use since that might help with a solution. Im running unreal 5.6.1.

This is because in a program certain variable types are assigned memory limits. To accomplish having a larger memory number, you would need to use C++. But even in C++ there are limits on how high a number can go before you will need to use scientific notation there as well.

You could achieve this in blueprint by creating a custom struct to handle numbers that go over by reducing the numbers to scientific notation.

As Conner says, you can separate the number into a floating part and an integer part that represents the exponent, although you would still have some loss of precision, or separate your number by the number of digits to create a variable like double float, triple float, etc.

Thanks, I will give this a shot.