float x = 2.88; int a = floor(x); // Set "a" to 2
floor(value)
This reference is licensed under the CC BY-NC-SA 2.0 license: