/src/php/math/ceil.js
JavaScript | 8 lines | 3 code | 1 blank | 4 comment | 0 complexity | fc038ad51f6b3c7eaba9ab4e2166d805 MD5 | raw file
- module.exports = function ceil (value) {
- // discuss at: http://locutus.io/php/ceil/
- // original by: Onno Marsman (https://twitter.com/onnomarsman)
- // example 1: ceil(8723321.4)
- // returns 1: 8723322
- return Math.ceil(value)
- }