double d = 10000000000000000; It is necessary that this number be displayed on the screen in this form without a floating point.

    1 answer 1

    C ++ style:

    std::cout.setf(std::ios::fixed); std::cout.precision(0); //0 - число символов после точки std::cout << d; 

    C style:

     printf("%.0lf",d); //%.Klf - K - число символов после точки, в данном случае 0