The Standard LibrarymathMethodsroundOn this pageroundRounds to the nearest integer. round(1.2); // 1round(1.5); // 2 Syntax round(value) Returns The rounded value as a double.