g.js — graphical objects for JavaScript

ceilceil

Round up a number to the nearest bigger integer.

g.ceil(42.1);

If the number is an integer, return the number itself.

g.ceil(67);

See Also

  • floor: Round down a number to the nearest smaller integer.
  • round: Round off a number to the nearest integer.