Remainder Command

Jun 28, 2013 at 1:51pm
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.
Jun 28, 2013 at 1:54pm
Jun 28, 2013 at 1:55pm
Casting to int truncates the fractional part - no rounding.
Jun 28, 2013 at 2:18pm
Don't worry, I found something that worked, the floor function :)
Last edited on Jun 28, 2013 at 2:18pm
Topic archived. No new replies allowed.