Round to the nearest integer for positive and negative values. Learn more about simple division. Then use floor you can use either fix or floor if you only have positive values with floor being preferred more efficient mathematically clearer.