|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
507 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | var createRound = require('./_createRound');
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Computes `number` rounded up to `precision`.
|
|---|
| 5 | *
|
|---|
| 6 | * @static
|
|---|
| 7 | * @memberOf _
|
|---|
| 8 | * @since 3.10.0
|
|---|
| 9 | * @category Math
|
|---|
| 10 | * @param {number} number The number to round up.
|
|---|
| 11 | * @param {number} [precision=0] The precision to round up to.
|
|---|
| 12 | * @returns {number} Returns the rounded up number.
|
|---|
| 13 | * @example
|
|---|
| 14 | *
|
|---|
| 15 | * _.ceil(4.006);
|
|---|
| 16 | * // => 5
|
|---|
| 17 | *
|
|---|
| 18 | * _.ceil(6.004, 2);
|
|---|
| 19 | * // => 6.01
|
|---|
| 20 | *
|
|---|
| 21 | * _.ceil(6040, -2);
|
|---|
| 22 | * // => 6100
|
|---|
| 23 | */
|
|---|
| 24 | var ceil = createRound('ceil');
|
|---|
| 25 |
|
|---|
| 26 | module.exports = ceil;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.