|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
506 bytes
|
| Rev | Line | |
|---|
| [a762898] | 1 | /**
|
|---|
| 2 | * Multiply two numbers.
|
|---|
| 3 | *
|
|---|
| 4 | * If either of the numbers is `NaN`, the function returns `NaN`.
|
|---|
| 5 | *
|
|---|
| 6 | * @param {number} value The first number in a multiplication
|
|---|
| 7 | * @param {number} other The second number in a multiplication
|
|---|
| 8 | * @returns {number} The product of value and other
|
|---|
| 9 | *
|
|---|
| 10 | * @example
|
|---|
| 11 | * multiply(2, 3); // => 6
|
|---|
| 12 | * multiply(2, NaN); // => NaN
|
|---|
| 13 | * multiply(NaN, 3); // => NaN
|
|---|
| 14 | * multiply(NaN, NaN); // => NaN
|
|---|
| 15 | */
|
|---|
| 16 | declare function multiply(value: number, other: number): number;
|
|---|
| 17 |
|
|---|
| 18 | export { multiply };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.