Remainder Command

Is there a command to completely remove the remainder of a double variable type? I want as an example 12.96 to become 12, but it should be a general solution so I can't just remove 0.96 every time because the number won't be the same every time.
Casting to int truncates the fractional part - no rounding.
Don't worry, I found something that worked, the floor function :)
Last edited on
Topic archived. No new replies allowed.