Real Variable in UDF with Double Precision Solver

How is a real variable defined in a UDF treated in a double precision solver?

In Ansys Fluent, real is a typedef that switches between float for single-precision arithmetic, and double for double-precision arithmetic.
Since the interpreter makes this assignment automatically, if you define your variables as real, they will be in double precision if you use the double precision solver.
However, if you use float or double to define your variable type, the precision will not change with solver precision.
It is typically recommended that you use real to define variable type.