Use just the whole number

This is likely a really easy problem, but I cant seem to figure out how to accomplish it. I am going to have a pulse input the pulses will be counted and a frequency calculated. Once the Frequency is calculated and set into its variable, i would like to do a math operation that uses only the whole number(not the rounded number) the math to calculate the Frequency could also use just the whole number. basically i want to declare a variable that ignores everything after the decimal point.

Any and all help is appreciated.

This is exactly what the int type does. It can only be whole numbers. You probably want a long int though. You can make it unsigned if it won't go negative.

I have looked at the types, a few specified an accuracy, but others did not, which is why i am asking. Thank you for the help. I knew it was a dumb question with a stupid easy answer.