The Standard LibrarymathMethodsfloorOn this pagefloorRounds down to the nearest integer. floor(1.2); // 1 Syntax floor(value) Returns The rounded down value as a double.