Is there a trunc function in C++?

后端 未结 7 818
情歌与酒
情歌与酒 2021-01-19 04:52

I searched around and couldn\'t find the trunc function for C++. I know I can do this:

int main()
{
    double a = 12.566789;
    cout <<          


        
7条回答
提交回复
热议问题