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