how to shoew float value with no decimal c++

can we show float value with no decimal like we can do in c language but can we do this in c++
in c programing
 
printf("%.0f",n);
You can set precision. Or you can cast it to an int.
the code i am doing need 8 byte for int data type how i can assign more memory to int
Topic archived. No new replies allowed.