Example. Round a number upward to it's nearest integer: Math.ceil(1.4). The result will be: 2. Try it yourself ». More "Try ...
www.w3schools.com