The round native AI script function is used to round a float value to the closest integer value.
(value: f)round(value: f) // round_f_f
value
.(count)round(4.7); // returns 5
This example code calls the round
function with a float value of 4.7 and returns the closest integer value, which is 5.