C++中的floor, ceil, round函数会有精度损失吗?

例如,

    double a = ***; //赋值
    int b = floor(a);
    int c = ceil(a);
    int d= round(a);

像这样的代码中,b, c, d的值能确保准确吗?

不能。double的转换 不一定能保证。我试过这些。 只能保证你想要的精度。

https://blog.csdn.net/dangzhangjing97/article/details/81279862
这里讲解很详细。