M
M
MDtox2018-08-18 22:09:56
C++ / C#
MDtox, 2018-08-18 22:09:56

Why is the constant π not fully deduced?

Here is the complete code ->

#include <stdio.h>
#include <math.h>
#define PI M_PI
 //Compiler version gcc 6.3.0

 int main()
 {   
 	printf("%f", PI);
 	return 0;
 }

The result is 3.141593.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2018-08-19
@jcmvbkbc

Why is the constant π not fully deduced?

An irrational number, on the other hand, cannot be deduced completely with the current level of technology.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question