Cut off Decimals

How do I cut off the decimals of a number?
For example 3.2912038 to something like 3, I have a double variable like 1.48 (%48) * 645 = 954.6, These numbers I just made up. The 954.6 is a integer and not a double or float. How do I cut off the decimals to something like 954?
Thanks
Last edited on
static_cast<int>(954.6)
Thanks
Topic archived. No new replies allowed.