How can I convert fraction values to whole number values?

The title is pretty simple, but how can I convert fraction values to whole number values? Like how can I convert 3.53641 to 3? or 7.999319 to 7?

math.floor(num)
3030303030 char