There was an error while loading. Please reload this page.
Round up a number to specific precision.
Similar: floor, ceil, round.
function ceil(x, pre?) // x: a number // pre: to precision [1]
const xmath = require('extra-math'); xmath.ceil(9.121, 1); // → 10 xmath.ceil(9.121, 0.01); // → 9.13 xmath.ceil(9.1217, 0.05); // → 9.15