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