Round()
Appearance
Accepts a decimal value and returns a decimal rounded to the nearest whole number using the C round() function. Halfway values are rounded away from zero.
float input = 3.5;
float result = round(input);
// result = 4.0
Accepts a decimal value and returns a decimal rounded to the nearest whole number using the C round() function. Halfway values are rounded away from zero.
float input = 3.5;
float result = round(input);
// result = 4.0