|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
394 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | /**
|
|---|
| 2 | * Computes number rounded to precision.
|
|---|
| 3 | *
|
|---|
| 4 | * @param {number} number The number to round.
|
|---|
| 5 | * @param {number} precision The precision to round to.
|
|---|
| 6 | * @returns {number} Returns the rounded number.
|
|---|
| 7 | *
|
|---|
| 8 | * @example
|
|---|
| 9 | * round(4.006); // => 4
|
|---|
| 10 | * round(4.006, 2); // => 4.01
|
|---|
| 11 | * round(4060, -2); // => 4100
|
|---|
| 12 | */
|
|---|
| 13 | declare function round(number: number, precision?: number): number;
|
|---|
| 14 |
|
|---|
| 15 | export { round };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.