real is the data type used to represent double-precision floating point numbers in C language. It occupies 8 bytes, has a precision of about 15 decimal places, and the range is [-1.7976931348623157e 308, 1.7976931348623157e 308].
real in C language
What is real?
real is the data type used to represent floating-point numbers in C language. It is a double-precision floating-point number.
Features:
Declaration:
<code class="c">float variable_name; double variable_name;</code>
Example:
<code class="c">int main() { real x = 3.14159265; // 声明一个 real 类型变量并初始化为 π printf("%f\n", x); // 输出 x 的值 return 0; }</code>
Output:
<code>3.141593</code>
The above is the detailed content of What does real mean in c language. For more information, please follow other related articles on the PHP Chinese website!