Fix error: use of undeclared identifier 'floor'