In the documentation for the math library, the values for the properties math.huge
and math.pi
are missing. Although math.pi can be found by executing the following command on the command line:
print(math.pi)
This results in the value of 3.141592653589793
. However, when I try to do this with math.huge, all I get for the result is inf
which is infinity. The documentation says that, and I quote:
Returns the value HUGE_VAL, a value larger than or equal to any other numerical value.
But what is the C/C++ constant HUGE_VAL
equal to? The issue stems from the fact that when attempting to enter a numeric value in the Studio properties editor, the numeric fields will not accept inf
as a number. So after running a command on the command line to manually set the property to math.huge, I found the following:
math.huge = 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368
Which is basically 21024. This number should be in the documentation for easy copy and paste into properties.