#include <cstdio>
#include <cmath>

using namespace std;

const double eps = 1e-6; //常量 double前加const 这个数不能变 变了就报错

int main(){
    // double x = 1.23456789; 
    // float a = x * x;
    // float b = sqrt(a);
    
    
    // // printf("%.10f\n", b);
    
    // if(x == b) puts("相等");
    // // if(fabs(x - b) < eps) puts("相等");//fabs 是浮点数求绝对值函数 eps为误差
    
    int a = 3;
    printf("%.20lf\n", sqrt(a) * sqrt(a));
    //因为double的有效数字只有16位 所以超过16后精度就不够了
    
    
    return 0;
}